fn piped(cmd: &mut Command, pipe_stdin: bool) -> &mut Command
Creates new pipes for stderr, stdout, and optionally stdin.