Specialize GroupCommand and CustomCommand, change generateCommand to new...

....