in powershell-agent/src/main/java/jetbrains/buildServer/powershell/agent/system/PowerShellCommands.java [46:55]
public String getNativeCommand(@NotNull final PowerShellInfo info, @NotNull final BuildRunnerContext context) {
if (!context.isVirtualContext()) {
if (info.getBitness() == PowerShellBitness.x64) {
if (mySystemBitness.is32bit()) {
return info.getExecutablePath().replace(SYSTEM32, NATIVE);
}
}
}
return info.getExecutablePath();
}