I would like to request an option to use PowerShell 7 as the execution engine on Windows instead of Windows PowerShell.
Ideally, this could be configured as an optional default or enabled on a per-script basis using a checkbox or similar setting.
This would make it possible to migrate existing scripts to PowerShell 7 and take advantage of modern PowerShell 7 modules while still preserving the existing logging and feedback mechanism.
var child = require('child_process').execFile(process.env['windir'] + '\system32\WindowsPowerShell\v1.0\powershell.exe', ['-NoLogo', '-NoProfile', '-ExecutionPolicy Bypass'] );
I would like to request an option to use PowerShell 7 as the execution engine on Windows instead of Windows PowerShell.
Ideally, this could be configured as an optional default or enabled on a per-script basis using a checkbox or similar setting.
This would make it possible to migrate existing scripts to PowerShell 7 and take advantage of modern PowerShell 7 modules while still preserving the existing logging and feedback mechanism.
var child = require('child_process').execFile(process.env['windir'] + '\system32\WindowsPowerShell\v1.0\powershell.exe', ['-NoLogo', '-NoProfile', '-ExecutionPolicy Bypass'] );