The link below provides example scripts, resources, and documentation for scripting the Kaseya 7 engine to automate Network Detective scans. The package below is provided as an exemplar only and is not supported.
https://s3.amazonaws.com/networkdetective/integrations/kaseya/Kaseya7_2014_08.zip