I have a text file which consists of 100s of URLs. Those URLs again contain different installer files(.exe, .msi, .bat, .txt etc..)
I need to download those files onto my local machine using Invoke-WebRequest. But how can I download files without specifying the extension type of it in the Output path?
File.txt:
https://foo.com/path/to/file.exe?token=ahcdj009a
https://foo.com/path/to/file.msi?token=ansjndhkg
https://foo.com/path/to/file.lpr?token=553dndgbs
https://foo.com/path/to/file.txt?token=amnewa453
...etc
How do I download all the files from the URLs onto a Windows local machine using Invoke-WebRequest PowerShell command?