From 5e6caa90eface2dfb970bc47a1c575302b6fb4a7 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Wed, 2 Jul 2025 23:00:21 -0400 Subject: [PATCH] Update StackMonkey.ps1 --- StackMonkey.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/StackMonkey.ps1 b/StackMonkey.ps1 index 72d4e04..b663a86 100644 --- a/StackMonkey.ps1 +++ b/StackMonkey.ps1 @@ -1604,7 +1604,13 @@ function Install-DattoRMM { } } } - Invoke-ScriptMonkey @namedArgs + #Invoke-ScriptMonkey @namedArgs +try { + Invoke-ScriptMonkey @namedArgs +} catch [System.Management.Automation.ParameterBindingValidationException] { + Write-Host " Invalid parameter: $($_.Exception.Message)" -ForegroundColor Red +} + } else { Invoke-ScriptMonkey }