code: public ScriptResult ExecuteShellScriptInJob(String jobname, String engine, String script) {
          HttpPost postRequest = new HttpPost(baseUrl + "job/" + jobname + "/script");
          List<NameValuePair> nvp = new LinkedList<NameValuePair>();
          nvp.add(new BasicNameValuePair("engine", engine));
          nvp.add(new BasicNameValuePair("script", script));
          StringEntity postEntity = null;
          try {
              postEntity = new UrlEncodedFormEntity(nvp);
          } catch (UnsupportedEncodingException e) {
              e.printStackTrace();
          }
          postEntity.setContentType("application/x-www-form-urlencoded");
          postRequest.addHeader("Accept", "application/xml");
          postRequest.setEntity(postEntity);
          return scriptResult(postRequest);
      }
docs: /*
  [beanshell,js,groovy,AppleScriptEngine]