powershell try catch log exception