This method returns a commandGroup object for the given ID, or null if one is not found.
function onSample()
{
var commandGroup = scene.getCommandGroupById("myCmdGrpID");
if (commandGroup)
{
shell.print("There are " + commandGroup.commandCount + " commands in this command group.");
}
}