Run a powershell command.
npm install exec-powershell> Run a powershell command.
``sh`
npm install --save exec-powershell
Asynchronously execute a powershell command.
Parameters:
- command (string) - The powershell command to executestring[]
- startupFlags () - The optional startup flags to be passed to powershell. Defaults to ["-NoProfile", "-NoLogo", "-NonInteractive"]. This means that the Powershell profile is not sourced first.Options
- execOptions () - The options passed to execa. Defaults to { stdio: "inherit" }
returns: ExecaChildProcess
Execute a powershell command.
Parameters:
- command (string) - The powershell command to executestring[]
- startupFlags () - The optional startup flags to be passed to powershell. Defaults to ["-NoProfile", "-NoLogo", "-NonInteractive"]. This means that the Powershell profile is not sourced first.SyncOptions
- execOptions () - The options passed to execa. Defaults to { stdio: "inherit" }`
returns: ExecaReturnBase
Get the path to the powershell executable.
returns: string
You can sponsor my work here:
https://github.com/sponsors/aminya
Pull requests, issues and feature requests are welcome.
See the Contributing guide.