Get Array Index Powershell If Elseif Else Statement