code: public static String executeGroovy(String script, @Nonnull VirtualChannel channel) throws IOException, InterruptedException {
          return channel.call(new Script(script));
      }
docs: Executes Groovy script remotely.