when I put the script outside and run it manually there is no error, but when I put in a Job It pops up above the error.