in powershell-agent/src/main/java/jetbrains/buildServer/powershell/agent/detect/cmd/DetectionRunner.java [36:51]
List<String> runDetectionScript(@NotNull final String executablePath,
@NotNull final String detectionScriptPath,
@NotNull final List<String> additionalParameters) throws ExecutionException {
final GeneralCommandLine cl = new GeneralCommandLine();
cl.setExePath(executablePath);
cl.addParameter("-NoProfile");
for (String str: additionalParameters) {
cl.addParameter(str);
}
cl.addParameter("-File");
cl.addParameter(detectionScriptPath);
if (LOG.isDebugEnabled()) {
LOG.debug("Running detection script using command line: " + cl.getCommandLineString());
}
return runProcess(cl).getStdoutLines();
}