There isn't a way to do this in gfsh 7.0. Attached is a function that provides that behavior.
Execute it like:
private void executePRB() { Execution execution = FunctionService.onRegion(this.region).withCollector(new PRBResultCollector()); ResultCollector collector = execution.execute("PRBFunction"); String result = (String) collector.getResult(); System.out.println(result); }