mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-11 17:34:58 +00:00
Create powershell.js
This commit is contained in:
parent
8a01d987d7
commit
cd0f9face3
13
lib/powershell.js
Normal file
13
lib/powershell.js
Normal 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;
|
Loading…
Reference in New Issue
Block a user