[DEV] Added API to register subpermission for a command.