← Docs home

Implement for the Middle of a Pipeline

📐 Guideline.

Implement a cmdlet assuming it will be called from the middle of a pipeline, where other cmdlets produce its input or consume its output. For example, Get-Process generates data and might seem to belong only first in a pipeline, but because it is designed for the middle, it lets previous cmdlets or data in the pipeline specify the processes to retrieve.