Ok something so simple is just not working for me. I got a cmdlet that accepts a single parameter. I am trying to call a cmdlet within a Windows batch file. The batch fil
Try this syntax instead:
cd %SystemRoot%\system32\WindowsPowerShell\v1.0 powershell {Set-ExecutionPolicy Unrestricted} powershell "& C:\convert-utf8-to-utf16.ps1 C:\test.txt" powershell {Set-ExecutionPolicy Restricted} pause