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 Windows PowerShell core (powershell.exe). If not, will use PowerShell Core (pwsh.exe)
| Type | Required | Position | PipelineInput |
|---|---|---|---|
[Switch] |
false | named | false |
Batch -ScriptInfo <ExternalScriptInfo> [-WindowsPowerShell] [<CommonParameters>]Batch -ScriptBlock <ScriptBlock> [-WindowsPowerShell] [<CommonParameters>]