Remove failing check if PBI has been updated, and instead use the exitStatus() && exitCode() from
the "pbi_update" process. That should always return "0" if it was successfull, or non-0 if not.