How To Index Array In Powershell If Statement