PowerShell Where-Object: Filter Objects With Examples
PowerShell Where-Object filters objects in the pipeline. You give it a condition in a script block, and it passes on only the objects where the condition is true. Here it keeps orders over $900: Output: $_ is the object being checked. The other examples in this guide use the same five sample orders in $orders, … Read more