at what point does the scirpt become cheating?
Wikipedia, Cheating in online games:
Scripting
Scripting is the use of a program or game feature to automate certain actions or behaviors. The use of scripts may or may not be considered cheating, depending on the behavior involved, and whether said behavior is replicable without the use of such script.
For me this script saves a lot of tedious work, making the game more fun to play. At the same time it might give an unfair advantage because my reinforcing goes smoother than my enemies reinforcing. It will probably safe me some time I can use for paying attention to micromanaging my battles.
This is not replicable without script so I'd say it is cheating.