@gastaldi Ok, but your example.. How do I apply ? Because between UI and Command doesn't exist a lowercase previously. Command was removed, not exist Command into commandName when I not specified the commandName parameter or when ends with Command. In you example it's easy, my method return: new-ui

But when I have for example, this parameter: NewUITesteCommand.. What my method should return? new-ui-teste, new-uitest or new-u-i-test. Append "-" only if a lowercase was previously found not a better form, this example doesn't pass. [I hope that you understand this text]