I used to AirPlay audio to HomePod with a keyboard trigger that runs an AppleScript, which is a hack. That script failed to work after an upgrade of macOS, so I thought a Shortcut should easily do the job.
Nope, “set playback destination” only works on iOS.