If you do not want to modify the script itself, then open a command window and execute the script from the command line. The only reason the console closes after the script completes is because it was created by the script itself. The script does not close the console you opened.
source
share