I've been messing around with Apple Shortcuts lately, and I guess you can call them from the command line, which is neat.

https://support.apple.com/guide/shortcuts-mac/run-shortcuts-from-the-command-line-apd455c82f02/mac

#apple #macOS

Run shortcuts from the command line

You can run a shortcut from the command line on your Mac.

Apple Support
@rasterweb Shortcuts is the only way I get Siri to do anything useful on my phone. I have a bunch that do an ssh to something to activate different things ... most frequently, ssh-ing to an iMac with iTunes to play different stuff. I had no luck trying to script Remote directly to do it 😕