How to get group details after group create?

How to get group details after group create using myDiagram.commandHandler.groupSelection()?
After calling myDiagram.commandHandler.groupSelection() we want to get group details.
We also want to select the group in diagram.

As documented, CommandHandler | GoJS API does select the new Group.