and you can use Task Scheduler to automate the process. Create a basic task, choose how often it will run, and select Start a program on the “Action” screen. In the “Program/script” field ...
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 ...
Fill in any other options and click "Next." Task Scheduler will ask what action you want to perform. Here, choose "Start a Program." You can select the "Display a Message (Deprecated)" option ...