Its as soon as you start the client, regardless of the script, once the client is closed the game runs fine again. Open the client up and it spikes significantly, and as assumed gets even worse if you try to start a script.
edit: can confirm that minimizing the bot client does allow the game...