You haven't provided a lot of info such as the versions in which the CPU spiked, the script which you are using, whether or not the CPU decreased over time, etc. We can't work magic without a little bit of information. I can show you a screenshot of OSBot on my computer only using 120MB of RAM and 7% CPU.