Splits standard input and pipes into a command