Windows 10 Task Scheduler run PowerShell with no pop-up window
I am achieving this via the task scheduler, i have set the action value to start a powershell program with the following arguments:
-executionpolicy bypass -noninteractive -file "C:\PathToYourScript"
the key argument here is -noninteractive, it does not present an interactive prompt to the user.