Hi, have you considered trying a pipe viewer? I use linux exclusively, but I'm sure Windows has one. I would try running the whole piped command and capturing it's STDOUT. You might have to regex the STDOUT for %. Possibly
IO::Capture::Stdout would help.