Get Array Index Powershell If Statement