[PATCH v3 3/5] programs/cmd: Create helper to execute a command.