CommandScriptHandler handler = handler(
"command.0", shell.getAbsolutePath(),
"command.1", "@[1]");
ExecutionContext context = new ExecutionContext(
"tbatch", "tflow", "texec", ExecutionPhase.MAIN, map());
handler.execute(ExecutionMonitor.NULL, context, script);
}
private CommandScriptHandler handler(String... keyValuePairs) {
Map<String, String> conf = map(keyValuePairs);
conf.put(JschProcessExecutor.KEY_USER, System.getProperty("user.name"));