Creating the script file