The main program

Go to File>Export.
Set File Format: application
Check boxes: Run-only, Stay open after run handler