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 }