Hi Experts,
I am new to powershell.
I have a ".ps1" file to be scheduled as batch file in windows task scheduler.
C:\Windows\System32\WindowsPowershell\Powershell.exe -File "E:\Schedule\Test.ps1"
The above command is working fine.
But when I save it as ".bat" file and execute from windows command prompt, it throws errors like below.
"'#' is not recognized as an internal or external command, operable program or batch file.".
Get same error for all powershell commands.
How can we save ".PS1" file as ".Bat" file and schedule it using windows scheduler ?
Thanks in advance.
San.