powershell try catch exit loop