public CliFunctionResult executeFunctionAndGetFunctionResult(Function<?> function, Object args,
      final DistributedMember targetMember) {
    ResultCollector<?, ?> rc = executeFunction(function, args, Collections.singleton(targetMember));
    List<CliFunctionResult> results = CliFunctionResult.cleanResults((List<?>) rc.getResult());
    return results.size() > 0 ? results.get(0) : null;
  }
if no members matches these names, a UserErrorException will be thrown

@param groups names of groups to which returned members belong
@param members member names or IDs which returned members match
@return a set of matching members
geode-gfsh/src/main/java/org/apache/geode/management/cli/GfshCommand.java