Take the command result and exit with an exit code.
Return a result from the running of the command.
Return a result from the deployment.

Uses existing deployStatus to determine the result value.