How to included parameters such as -noexit for the execution of the powershell script

Feb 5, 2016 at 11:27 AM
my script registers to a WMI event and because of that I need to run the script with the option -noexit

powershell -noexit myscript.ps1

how can I include that powershell parameter in the ps2exe command?

thanks a lot!