Feature request: --command and --file for `fly pg connect`

I want to set up databases in CI. Right now, I’m using flyctl proxy, sleeping while it connects, running psql (well, liquibase) manually, then killing the proxy and removing the CI account from wireguard. It would be nice if that could be a single command that doesn’t wait unnecessarily.