Read the progress of 7zip console output?? [HELP]

I was making an extractor using 7zip. Eveyrthing was fine but just i can't get the console output of the progress while a action is going

Like when a file is compressing the Standard error output or Standard Output doesn't give the progress but it gives the output only after the process is finished. But in the Official gui of 7zip they have created a progress bar with 7zip so im pretty sure that there's a way to get the progress while processing.