Handling pipe of commands like a single command