AppleScript to control Music.app
in background.
Run on macOS Big Sur
for using SF symbol
in scripts.
Use Automator.app
or Alfred 4.app
to run these applescripts with keyboard shortcuts.
First useful blog concerning Applescript
iTunes AppleScript examples (command examples)
(Official docs of Applescript are not recommended for being poorly documented.)