Execute script non-interactive during OneShot tasks

This commit is contained in:
Manuel Thalmann 2024-08-27 03:50:08 +02:00
parent bd764a1429
commit 267ebd5c5b

View file

@ -25,7 +25,7 @@ $null = New-Module {
function Start-Operation {
param(
[switch] $NonInteractive,
[switch] $NonInteractive = ((Get-Stage) -eq ([SetupStage]::OneShot)),
[switch] $NoImplicitCleanup,
[scriptblock] $Action
)