How do I run a powershell script with parameters in Task Scheduler?
Open the Windows Scheduler and create a basic task:
- Add a task trigger.
- I will run this script every day.
- Select “Start a program”
- If you work with Windows PowerShell, you must use the following path: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe.