search for an element in the array in powershell code example
Example: powershell search array
$a = @(1,2,3,4,5)
$a | where { $_ -eq 3 }
$a -eq 3
$a -contains 3
$a = @(1,2,3,4,5)
$a | where { $_ -eq 3 }
$a -eq 3
$a -contains 3