Replicating RunConsoleCommand in C++
Yeah just like it says in the title, I need to replicate RunConsoleCommand so I can get around the blocks, preferably as a lua function 



CreateInterfaceFn engineFactory = Sys_GetFactory("engine.dll");
IVEngineClient* enginePointer;
enginePointer = (IVEngineClient*)engineFactory("VEngineClient015", NULL);
enginePointer->ClientCmd("echo hello");