powershell break nested foreach loop