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