GeneralCommandLine commandLine = new GeneralCommandLine();
commandLine.setExePath(runConfiguration.getInterpreterPath());
commandLine.getParametersList().addParametersString("/c");
commandLine.getParametersList().addParametersString(runConfiguration.getInterpreterOptions());
if (!StringUtil.isEmptyOrSpaces(runConfiguration.getScriptName())) {
commandLine.addParameter(runConfiguration.getScriptName());
}
commandLine.getParametersList().addParametersString(runConfiguration.getScriptParameters());
if (!StringUtil.isEmptyOrSpaces(runConfiguration.getWorkingDirectory())) {
commandLine.setWorkDirectory(runConfiguration.getWorkingDirectory());