Get Array Index Powershell If Condition