Execute script non-interactive during OneShot tasks
This commit is contained in:
parent
bd764a1429
commit
267ebd5c5b
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ $null = New-Module {
|
||||||
|
|
||||||
function Start-Operation {
|
function Start-Operation {
|
||||||
param(
|
param(
|
||||||
[switch] $NonInteractive,
|
[switch] $NonInteractive = ((Get-Stage) -eq ([SetupStage]::OneShot)),
|
||||||
[switch] $NoImplicitCleanup,
|
[switch] $NoImplicitCleanup,
|
||||||
[scriptblock] $Action
|
[scriptblock] $Action
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue