diff --git a/StackMonkey.ps1 b/StackMonkey.ps1 index 8cfdec3..e5d9bf4 100644 --- a/StackMonkey.ps1 +++ b/StackMonkey.ps1 @@ -133,7 +133,19 @@ $Global:DattoWebhookUrl = 'https://automate.svstools.ca/webhook/svsmspkit' throw "Failed to retrieve Datto API credentials from n8n" } - #2) need to run the install-dattormm + # 2) call the existing cmdlet from your module + # (make sure you’ve already done Import-Module SVSMSP or the module that contains it) + Install-DattoRMM ` + -ApiUrl $creds.ApiUrl ` + -ApiKey $creds.ApiKey ` + -ApiSecretKey $creds.ApiSecretKey ` + -SiteUID $SiteUID ` + -SiteName $SiteName ` + -PushSiteVars:$PushSiteVars ` + -InstallRMM:$InstallRMM ` + -SaveCopy:$SaveCopy + + return } }