Get Array Index Powershell Script Block