public Collection<PSObject> Invoke(string command, object[] inputs, bool outputResults) { if (String.IsNullOrEmpty(command)) { throw new ArgumentNullException("command"); } using (Pipeline pipeline = CreatePipeline(command, outputResults)) { return InvokeCore(pipeline, inputs); } }