try catch powershell write error