Problems related to communication between the dual pipe (CreatePipe) and the cmd.exe process. Perfect solution code