Last week I was searching through a huge array of strings by hand/eye. I was looking for certain active directory groups. I quickly releazied how stupid this was and researched ("googled" ;-)) how to check if a powershell array contains a string. "-match" comes to the rescue here.
$data = @('Zero','One','Two','Three') $data -match 'Two'