We can have a bash script fire on boot: https://cloud.google.com/compute/docs/instances/startup-scripts/linux
Adding the script with Gcloud CLI:
It makes more sense to have the script simply launch a file on the target machine rather than putting it all into the cli at this stage.