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

Feb 5, 2016 at 12:27 PM
hi,
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!
Jose