hendrik on 17 Jul, 2021 04:10 PM
macOS probably prompted you to allow beaTunes to communicate with Music. This dialog is unfortunately easy to miss and disappears after a while. More info can be found at https://blog.beatunes.com/search/label/AppleScript under the sub-heading AEpocalypse :: Averted.
To fix the issue, please adjust the settings under System Preferences -> Security & Privacy -> Automation and make sure beaTunes is allowed to remote control Music.app.
If this is not possible for some reason, I recommend to run
tccutil reset AppleEvents
from the Terminal.app command line, restart beaTunes and pay attention to system dialogs asking permission to control Music.app