I have a PowerShell script which works fine and when triggered via a batch file as well, I am able to get it executed. But when I try to run the same batch file via Task Scheduler, it fails stating that PowerShell is unrecognized
Below is the proper error message -
'Powershell.exe' is not recognized as an internal or external command, operable program or batch file.
I searched for my PowerShell installation folder, but I couldn't find any path and couldn't use it. Any help would be of great help