SyntaxFix
Write A Post
Hire A Developer
Questions
This error will also occur if you call .ps1 file from a .bat file and file path has spaces.
.ps1
.bat
The fix is to make sure there are no spaces in the path of .ps1 file.