eqrunner - sorry I didn't get back earlier. The machine I was running my bot from had crashed so it was put on the back burner for a while, but now all is up and running again.
Originally I was trying to replace individual !'s in the command prep area. I just tried what you most recently posted and it worked perfectly. Thanks for clearing that up. :)