sendCommand

Started working on it, haven't tested it yet - writing from text editor.
if you see any logic errors let me know, it's just my guess :D