powershell foreach loop get index