Set up a scheduled task with the following settings.
Program…..
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Arguments…..
c:\scripts\yourscriptname.ps1
Set up a scheduled task with the following settings.
Program…..
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Arguments…..
c:\scripts\yourscriptname.ps1