MakeUICommand_InternalUseOnly

Internal function used by the UI_COMMAND macros to build the command.