Drush works by scanning specific directories for files that follow the COMMANDFILE.drush.inc pattern. You can think of COMMANDFILE for Drush as a representation of a module name in Drupal's hook system. When implementing a Drush hook, in the HOOK_drush format, you will need to replace HOOK with your COMMANDFILE name, just as you would do in Drupal with a module name.
In this recipe, we created a disable_users.drush.inc file. This means that all hooks and commands in the file need to use disable_users for hook invocations. Drush uses this to load the hook_drush_command hook that returns our command information.
We then provided the functionality of our logic in the drush_hook_command hook. For this hook, we replaced hook with our COMMANDFILE name, which was disable_users, giving us drush_disable_users_command. We replaced command with the command that we defined in hook_drush_command, which was disable-users. We then had our final drush_disable_users_disable_users hook.