code: function execute(id) {
          var command = _commands[id];
  
          if (command) {
              try {
                  exports.trigger("beforeExecuteCommand", id);
              } catch (err) {
                  console.error(err);
              }
  
              return command.execute.apply(command, Array.prototype.slice.call(arguments, 1));
          } else {
              return (new $.Deferred()).reject().promise();
          }
      }
docs: Looks up and runs a global command. Additional arguments are passed to the command.
  
  @param {string} id The ID of the command to run.
  @return {$.Promise} a jQuery promise that will be resolved when the command completes.