"Execute external command" just checks for the return code, i.e. it checks if the command returns successful. You may add your expected result as data (via a parameter) to a shell script and do the comparison inside the script.