Make process helper implement output aware interface

as @dantleech proposed the input aware interface there is the analogous for the output

imported from https://github.com/cordoval/gush/issues/222