Working script and command scheme picture

I'll be making improvements on the script, but here it is along with a picture of how things are communicating.
Feel free to modify this command scheme - just let me know if you do.