powershell try catch log error message