added get_pipe_command, works with test1.sh