Listen for song, download shortcut?

Not sure if this is possible before the Shazam acquisition is finalized and fully baked in, but anyone have an idea if it’s possible to build a shortcut that listens for whatever song is playing (externally), locates it on Apple Music and downloads it?

Thanks!!