Give a try to IPC-Cmd.
In reply to Re: Issue with capturing STDOUT using tar and p7zip by glasswalk3r in thread [SOLVED] Issue with capturing STDOUT using tar and p7zip by dblt1234