in reply to Clicking on exe the command prompt should stay

Just add the following to the end of your script so that it continues running until you have read the results:

print "Press <enter> to continue\n"; <STDIN>;