arg('Hello, World!') ->stdout(Stdio::piped()) ->spawn(); (new Command('cat')) ->stdin(Stdio::stream($echo->stdout)) ->status(); // Hello, World!