private void OutputDataReady(object sender, EventArgs e) { Collection<PSObject> data = this.pipeline.Output.NonBlockingRead(); if (this.OnDataReady != null) { this.OnDataReady(this, data); } }