powershell try catch write exception message