It would not violate any terms of service to automate the process of setting the scripts on one of your games. I've often considered doing just this, but I tend to do a bunch of testing of scripts locally (there are some npm packages to help with that) before getting to the live testing, so it's not often such a big deal for me. When I am rapidly iterating, I generally have the game and the API open in side by side windows and the script on another monitor. I have a command in my editor that copies the whole script so for me, it's pretty fast to: \y
click api
cmd-a
cmd-v
click save which means it hasn't risen to a high enough level to annoy me into automating. I'm pretty sure Lucian automated this as part of his development process on the Shaped Sheet Companion script, and I think I've heard of others doing similar for Character Sheet Development.