System.Management.Automation.StopUpstreamException
inherits from System.Management.Automation.FlowControlException
. StopUpstreamException
exception, the runtime will call StopProcessing()
on the preceding commands, yet without without terminating the entire pipeline. select-object -first …
in a pipeline, see also this Stackoverflow answer.