Update StackMonkey.ps1

This commit is contained in:
2025-06-23 00:25:31 -04:00
parent f87fca2e1b
commit 86625753b1

View File

@@ -1383,8 +1383,7 @@ if (-not $SilentInstall) {
Start-Server Start-Server
} }
# Only auto-invoke if the user actually passed parameters # At the end of ScriptMonkey.ps1
if ($PSBoundParameters.Count -gt 0) { if ($MyInvocation.ExpectingInput) {
Invoke-ScriptMonkey @PSBoundParameters Invoke-ScriptMonkey @PSBoundParameters
} }