node.jsでpowershellコマンドを実行する方法
目的vscode拡張機能でbackgroundでpowershellコマンド実行させる
回答child_process の exec/execSync を使う
require('child_process')
詳細古いやり方
var spawn = require("child_process").spawn,child;child = spawn("powershell.exe",["c:\\temp\\helloworld.ps1"]);child.stdout.