private void StartIISCertificateDiscoveryTaskAsync(NodeCredentialed node, Dictionary <string, object> cmdletParams, ClaimsPrincipal user) { Collection <HostIISCertificateEntity> result = null; try { result = powershell.InvokeScriptAsync <HostIISCertificateEntity>(hostIisDiscoveryScript, cmdletParams, user); this.RecieveIISCertificateDiscoveryResult(result, node); } catch (Exception ex) { string msg = string.Format("An error occured while attempting to run the host iis discovery job: {0}", ex.ToString()); auditLogic.LogOpsError(user, node.Id.ToString(), EventCategory.PowershellJob, msg); } }