To send commands to cmd from the command line, you must use either the "/C" or "/K" switches. Look at "help cmd". So your call to runScripts would be e.g.:
You are essentially re-implementing "system" as this is pretty much what it does.Code:runScripts( " /K echo howdy");