This error below was a result of not having the right path to the PowerShell executable. To fix this issue, enter the full path to the PowerShell executable
In the Argument field in Windows Admin Center, enter the full path as shown below
When this complete path is entered as stated,
– Click on submit to create a scheduled task. The following result will be displayed below.