Returns the index associated with the specified |command_id| or -1 if not found due to the command id not existing in the menu.
See Implementation
Returns the index associated with the specified |command_id| or -1 if not found due to the command id not existing in the menu.