Return behavior in PowerShell

Early exit

Gotcha Return in the pipeline

Return with a value

Gotcha Ignoring unwanted output

How to work with functions returns