MCPcopy Create free account
hub / github.com/Azure/powershell / executePowerShellScriptBlock

Method executePowerShellScriptBlock

lib/index.js:8259–8265  ·  view source on GitHub ↗
(scriptBlock_1)

Source from the content-addressed store, hash-verified

8257 });
8258 }
8259 static executePowerShellScriptBlock(scriptBlock_1) {
8260 return __awaiter(this, arguments, void 0, function* (scriptBlock, options = {}) {
8261 yield PowerShellToolRunner.init();
8262 const exitCode = yield exec.exec(`"${PowerShellToolRunner.psPath}" -NoLogo -NoProfile -NonInteractive -Command`, [scriptBlock], options);
8263 return exitCode;
8264 });
8265 }
8266}
8267exports["default"] = PowerShellToolRunner;
8268

Callers 5

executeFileMethod · 0.45
unzipUsingPowerShellMethod · 0.45
setPSModulePathMethod · 0.45
getLatestModuleMethod · 0.45
saveAzModuleMethod · 0.45

Calls 2

execMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected