I am trying to run a scheduled task that runs a powershell script as administrator to start a service.
I am trying to start that scheduled task using powerhshell, using Start-ScheduledTask, but I am getting an error saying that this is not recognised as a cmdlet. Am I missing something here?
Invoke Power Shell: The term ‘Start-ScheduledTask’ is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.