I ran across some Powershell code using the filter
command. I've never seen this command, but it works basically like this:
It seems to behave as a function. If I run Get-Command filter
I get back The term 'filter' is not recognized as the name of a cmdlet, function, script file, or operable program.
and Get-Alias filter
also returns a similar message. Get-Help filter
just returns Cmdlets and Functions with the word Filter somewhere. If I Google for "Powershell filter command", I just get a bunch of stuff about various commands with -Filter
arguments and Where-Object
syntax.
What is this command and what is it used for? Is there documentation on it somewhere? Thanks!