powershell try catch not catching error