pipe_collect_out function

Collect output from entire pipeline