I'm currently writing a script in which I need to download the latest version of yt-dlp.exe from Github. Since the script will need to work on multiple machines, I opted to use curl as the downloader. I found this script on some other site which I adapted for the program I need.
for /f "tokens=1,* delims=:" %%A in ('curl -ks https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest ^| find "browser_download_url"') do (curl -kOL %%B)
Only problem is that it fetches the entire latest release set when I need just one file! Is there a better way to do this without using powershell?
Thanks!