You can define your own commands to perform specialized processing. You need to:
You can register different versions of a command with the same name. Automation Services executes the version that best fits the resource or service the command is applied to.
For example, you can register two versions of a command with the name Z, where version one applies to all resources, and version two applies to started tasks only. When the Z command is applied to a started task, Automation Services executes version two of the command.