Get Array Index Powershell Foreach Command In Stata