powershell search array

Shell
$a = @(1,2,3,4,5)
$a | where { $_ -eq 3 }
$a -eq 3
$a -contains 3
Source

Also in Shell: