Trying out some solution for logging to a website with a powershell script and downloads the contents in a file to the specified location.
Just put the url of the website login page and the id's which can be obtained by the developer tools.
Edit valid username and password in the script.
Your file will be downloaded at the specified location which is D:\powershell here.
You can get the script here.
HAPPY LEARNING 😄