powershell try catch error message to log file