Powershell, Where-Object and capturing the output

Again, one that thing I couldn’t find because there is just no documentation on Powershell. Try this: $foo = SomethingThatResturnsAList $foo = $foo | Where-Object { $_.Name -like “*something*” } PassOnFooToSomethingElse -List $foo Awesome, every sane developer would think: right, that would work. Except in Powershell. It appears that $foo on line 5 is $null […]