powershell try catch write error message