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

Method executePowerShellCommand

lib/index.js:8253–8258  ·  view source on GitHub ↗
(command_1)

Source from the content-addressed store, hash-verified

8251 });
8252 }
8253 static executePowerShellCommand(command_1) {
8254 return __awaiter(this, arguments, void 0, function* (command, options = {}) {
8255 yield PowerShellToolRunner.init();
8256 yield exec.exec(`"${PowerShellToolRunner.psPath}" -NoLogo -NoProfile -NonInteractive -Command ${command}`, [], options);
8257 });
8258 }
8259 static executePowerShellScriptBlock(scriptBlock_1) {
8260 return __awaiter(this, arguments, void 0, function* (scriptBlock, options = {}) {
8261 yield PowerShellToolRunner.init();

Callers 2

checkModuleVersionMethod · 0.45
isHostedAgentMethod · 0.45

Calls 2

execMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected