So, recently, I asked a question about downloading a file to a variable. My team previously used powershell to download like this:
powershell.exe (new-object System.Net.WebClient).DownloadFile('https://example.org/example.bat', 'example.bat')
However, this question's answer had a new way to download,
bitsadmin /transfer myDownloadJob /download /priority normal https://example.org/example.bat
Which one should I use? And what pros and cons do they have?