V4.1.8 - Forcing ExitCode 3010

I am trying to use PSADT to update HP Bios using the HP Client Management Script Library. However when I run:

Get-HPBiosUpdates –Flash -Bitlocker suspend -Yes -Quiet

it flashes the bios but exit's with exit code 0. I want it to exit with code 3010. There used to be an easy way in version 3 to force the exit code. How do I do this in version 4.1?

Please see
Close-ADTSession -ExitCode

EDIT: FIXED by creating link myself

Close-ADTSession -Exitcode 3010

1 Like