I have a batch file that has commands like “cp” and “sleep”.
I run the batch file in a powershell terminal but it gets errors on these command lines.
<code>sleep 1
'sleep' is not recognized as an internal or external command,
operable program or batch file.
</code>
<code>sleep 1
'sleep' is not recognized as an internal or external command,
operable program or batch file.
</code>
sleep 1
'sleep' is not recognized as an internal or external command,
operable program or batch file.
I can execute these lines manually in the powershell terminal with no error.
I used to be able to execute the batch file in powershell but now I can’t and I don’t know why.
Any ideas why this isn’t working?