I had the same issue on my PC where the Microsoft Store was blocked. I found a solution that worked perfectly for me: you can use the website
Here's how it works:
1. Go to the site.
2. Paste the URL of the Apple Music app from the Microsoft Store.
3. Select the channel you want (usually Retail).
4. The site will generate direct download links for the APPX files and any dependencies.
By doing this, I was able to download the APPX file for Apple Music and install it without using the Microsoft Store. It updates just like any other app once installed
Hope this helps!
[Edited by Moderator]