Create powershell.js

This commit is contained in:
Namhyeon Go 2020-07-19 05:02:49 +09:00
parent 8a01d987d7
commit cd0f9face3

13
lib/powershell.js Normal file
View File

@ -0,0 +1,13 @@
var SHELL = require("lib/shell");
var scope = {
VERSIONINFO: "Powershell (powershell.js) version 0.1",
global: global,
require: global.require
};
scope.execScript = function(scriptName) {
return SHELL.exec("powershell.exe -NoProfile -ExecutionPolicy Bypass -nologo -file " + scriptName + ".ps1");
};
return scope;