in reply to flashing perl
I tend to throw in a <>; at the end of my script, this will require an Enter keypress at the end to close the window.