Partial implementation of UpdateMetricGroupScript