When you run the createdemo.bat file that comes with PS2EXE, you get this error in PowerShell:
ps2exe.ps1 cannot be loaded because running scripts is disabled on this system
To fix the error, you need to enable scripts to run on the system with this PowerShell cmdlet (run as administrator):
Set-ExecutionPolicy Unrestricted
You will then be able to run the createdemo.bat file without the error saying that the ps1 file can’t be loaded.