I wrote a shortcut to login to my Mac and change iTunes to the next track, since I cannot control the playback on the computer from my phone or HomePod.
It’s pointless, but it works.
ssh to my Mac and then
Run script Over SSH {host, port, user, pass}
text {
osascript <<ENDNEXT
tell application "iTunes"
set y to ""
if player state is not playing then
play
set y to name of current track & " by " & artist of current track & ""
set result to y
else
next track
set y to name of current track & " by " & artist of current track & ""
set result to y
end if
end tell
ENDNEXT
}
Show Notification {Title: Next Track} {%Run Script over SSH%}
You’ll need to do this one while having local to the Mac to give permission to control iTunes. Obviously, I made a nearly identical script for previous and one to get the name of the song, artist, album, and running time of the current song.