Added WEXITSTATUS in execute-command