Can the person entered the commands into your program instead of the command prompt?
Java can run OS level commands so there could be control that way.
If you have communicate with a separate window, I think you'd have to use a Microsoft language. And even then, I don't know if it is possible.