Powershell works fine in a VB Windows-Legacy project, but when I create and try to run the same Powershell cmdlet in a UiPath C# Windows project I receive the following error:
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.
How can I run the cmdlet (i.e. Start-ScheduledTask) from the Invoke Power Shell activity?
Or is there a better way to start a scheduled task from UiPath?