Be sure to use your path in the arguments below:
- Open Task Scheduler by hitting Windows Start key, and typing Task Scheduler until it appears. Click to open.
- In Actions Pane, click 'Create Basic Task'.
- In Name, type "_Daily Choco Upgrade", click 'Next'.
- Selected 'On Login', click 'Next'.
- 'Start a program' is selected, so click 'Next'.
- In Program/script:, type
PowerShell.exe
. - In Add arguments (optional), type
-File "<PATH>\daily_choco.ps1"
- Click 'Next'.
- Click 'Finish'.