I know that in a DOS/Windows application, you can issue system commands from code using lines like:
system(\"pause\");
or
s
I think what you are looking for are fork and exec.