I have really enjoyed this workflow and was disappointed when it stopped working with OS X Catalina.
Fortunately, the fix turned out to be really simple...
Just replace all instances of
tell application "iTunes"
with
tell application "Music"
Hope this helps.
Randy