Use `-contains`

PowerShell 2 errors with "Method invocation failed because [System.String[]] doesn't contain a method named 'IndexOf'.", see also https://github.com/aspnet/Home/pull/151