This sounds like a job for Sympl Scripts!
It should be fairly easy to find a WordPress install in a specified domain’s htdocs, and run wp-cli against it - if someone has any commonly useful scripts like the above (with adjustments so they install dependencies if needed for a basic Sympl install) I’d be willing to add them to the repo.