quitScript function can take a parameter, the script name