Get Array Index Powershell Script Generator