Wraps PowerShell in a Windows Batch Script
Wraps PowerShell in a Windows Batch Script
| Type | Required | Position | PipelineInput |
|---|---|---|---|
[ExternalScriptInfo] |
true | named | true (ByValue) |
| Type | Required | Position | PipelineInput |
|---|---|---|---|
[ScriptBlock] |
true | named | true (ByValue) |
If set, will use PowerShell core (pwsh.exe). If not, will use Windows PowerShell (powershell.exe)
| Type | Required | Position | PipelineInput |
|---|---|---|---|
[Switch] |
false | named | false |
BatchPowerShell -ScriptInfo <ExternalScriptInfo> [-Pwsh] [<CommonParameters>]BatchPowerShell -ScriptBlock <ScriptBlock> [-Pwsh] [<CommonParameters>]