Reputation: 837
I have one PowerShell script test.ps1
and I am trying to execute it from a test.bat file. My batch file contains:
@echo off
Powershell.exe -File D:\Testfolder\testsubfolder\test.ps1
pause
And I am getting the error:
'■@' is not recognized as an internal or external command, operable program or batch file.
Can someone point out what change I should make to run it correctly?
Upvotes: 3
Views: 1331
Reputation: 826
Upvotes: 3