How to set Powershell variable into ps1 script before the execution of the script
example:
application execution path: powershell.exe -ExecutionPolicy Bypass -File "C:/script.ps1"
paramater: $WhichSite= "StackOverflow"
ps1 contains: curl -UseBasicParsing "http://www.$WhichSite.com"
I tried the example above to set the $WhichSite = "stackoverflow"
But it did not work
result expected of executing powershell.exe -ExecutionPolicy Bypass -File "C:/script.ps1": curl -UseBasicParsing "http://www.stackoverflow.com"