Hello,
Thank you for posting in Q&A forum.
Unfortunately, after my search, I did not see a Windows script to get the direct download link (server link) for a local download. Getting the direct download link for a file that an application is downloading can be complicated, especially without any coding experience. Most apps and software updates are designed to be direct download updates and do not provide direct download links for security and version control reasons.
However, as far as I know, you can get the direct download link using tools such as Wireshark or Fiddler, which are popular network monitoring tools. Start the network monitoring tool and start capturing network traffic. Start a download or update in the application you want to monitor. Review the captured network traffic and look for HTTP or HTTPS requests corresponding to the download. The URL should be visible in the header or request details. Once you find the correct URL, you can copy it and use it to download the file directly in your browser or download manager.
Use Fiddler to capture this URL: https://woshub.com/how-to-download-appx-installation-file-for-any-windows-store-app/#h2_2
Best Regards,
Yanhong Liu
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.