Execute program abilty to set Exit Code to variable

I would like to set a variable to the exit code when using Execute program.

My usecase is RedGates SQL Compare that can give me 2 exit codes which are both ok.