powershell foreach get index number