I am running a simple script using cloud shell to get the selected records from a given table.
cloud shell
#!/bin/bash bq query --format=pretty --use_legacy