Returns the command id at the specified |index| or -1 if not found due to invalid range or the index being a separator.
See Implementation
Returns the command id at the specified |index| or -1 if not found due to invalid range or the index being a separator.