Get SetupDiag Report
Summary
Download (if necessary) and execute SetupDiag.exe, returning the results to a variable and optionally emailing them.
Sample Run

Dependencies
Variables
| Name | Description | 
|---|---|
| SetupDiagResult | Contains the return from the run of SetupDiag. | 
User Parameters
| Name | Example | Required | Description | 
|---|---|---|---|
| EmailAddress | myemail@provaltech.com | False | Send an email report to a specified address. | 
Output
Outputs to a variable (SetupDiagResult) that can be referenced in parent scripts.
See Invoke-SetupDiag for additional output information.