That just creates a new console. Using that, you have not way of communicating with it. Also, system() is a blocking function, which means that until the program it started has finished, system() will not return to the calling function.
IPC is not for beginners.