Get Array Index Powershell Execution Mode