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