When trying to run the “createdemo.bat” file in PS2EXE, you get this error:
ps2exe cannot process argument transformation on parameter lcid
To fix this, forget the example batch file and go ahead and use this example to make an exe file from your PowerShell ps1 file:
.\ps2exe.ps1 -inputfile C:\Temp\test.ps1 -outputfile C:\Temp\test.exe
Implicitly, you have to navigate to the current directory containing PS2EXE’s ps2exe.ps1 script 😉