Schedule PowerShell script using Task Scheduler
It’s assumed you have already created a PowerShell script. To schedule PowerShell script using Task Scheduler, do the following: In the Action drop-down, Start a program is set by default. You can change it if required. Using Browse, select program/script field. To schedule a script, we need to select powershell.exe. You can find powershell.exe in your system32\WindowsPowerShell\v1.0 folder. In Add arguments, -File parameter is the default one so simply specify the script path. Assume you have created a PowerShell script and saved it to your desktop. If the path contains any blank space, it should be enclosed with quotes.
Once configured, you can specify conditions to determine whether the task should run. The task will not run if any condition specified here is not true.On the Settings tab, you can set additional advanced settings to control the task execution.Finally, click OK to create a scheduled script.Click OK again. You can now exit Task Scheduler.
Read: PowerShell script does not run as Scheduled Task, 0xFFFD0000 error The scheduled script will run as expected according to your schedule without any issue. If you want to check script execution, you can click Run by right-clicking task name. This is how you can make a PowerShell script run as a scheduled task using Task Scheduler.