powershell try catch break foreach loop