The function receives custom command messages changing behaviour of the scheduler.
The function tells the scheduler what to do. Different commands are possible e.g. the reload command which forces the service to reload configuration settings. For more informations see CustomCommand enum.
It would be called from the OnCustomCommand method which receives the custom command from windows service management.