Get Array Index Powershell Script Generator Copy