diff --git a/samy.ps1 b/samy.ps1 index 5f6d192..154c409 100644 --- a/samy.ps1 +++ b/samy.ps1 @@ -2156,7 +2156,7 @@ function Install-DattoRMM { # dot-sourced, don't invoke } elseif ($PSCommandPath) { # script was saved and run directly - Invoke-ScriptAutomationMonkey @PSBoundParameters + Invoke-ScriptAutomationMonkey @args } else { # iwr | iex fallback if ($args.Count -gt 0) {