Use `-contains`

PowerShell 2 errors with "Method invocation failed because [System.String[]] doesn't contain a method named 'IndexOf'."