I need to call a script, which gets the status of the last backup (Get-WBJob -Previous 1) and use attribute HResult (will be 0 or 1) in the next step.

I have:
$params = @{"ID"="811185195";
"Server"="XAD";
"success"="Here i need have result of HResult"}
How do I get the only the HResult property from Get-WBJob?