I created a script that runs perfectly fine in visual studio code but I\'m now trying to automate the script, which is proving to be a little tricky. I\'ve turned the file i