cmCommand refactoring: Turn disallowed commands into free functions
- Turn disallowed commands into free functions
- Remove unsued
AddDisallowedCommand
overload - Remove
cmDisallowedCommand
class
Ref: #19499
AddDisallowedCommand
overloadcmDisallowedCommand
classRef: #19499