It’s quite hard to tell how your script proceeds since we have no any details about it (URLs, actions, etc). Looks like you are trying to upload / download a file from some sort of cloud? If so, Scripting Tool is not designed for such purposes due to security policy. Please. provide us with more details about your script. You can simply copy the script text and paste it within the answer. As an option, you can send sequence of steps so we can check if that can be implemented.