Simple usage
1. Logging PowerShell version
// Print PowerShell Version using PowerJS
import { PowerJS } from "@obayd/powerjs";
const instance = new PowerJS(/* options */);
instance.exec("$PSVersionTable").then((result) => {
// You may notice some slowdown, that's because of the instance init process.
// After the instance is started, you can enjoy a blazing fast environnement!
console.log("Currently on Powershell v" + result.PSVersion.Major + "!");
});PowerShell Version Table:


In step-by-step:
2. Logging User names

3.
Last updated