diff --git a/cleanup.ps1 b/cleanup.ps1 index 856a518..ed09129 100644 --- a/cleanup.ps1 +++ b/cleanup.ps1 @@ -84,12 +84,13 @@ if ($result -eq [System.Windows.Forms.DialogResult]::OK) { # Set the $Name variable for the external script to use $Name = "QUEST-CLEANUP-$ticket-$randomChars-$dateStr" + # Run scripts + $CreateRestorePoint = irm $ScriptCreateRestorePoint | iex + $GetComputerInfo = irm $ScriptGetComputerInfo | iex + $GetInstalledAV = irm $ScriptGetInstalledAV | iex + # Webhook try { - $CreateRestorePoint = irm $ScriptCreateRestorePoint | iex - $GetComputerInfo = irm $ScriptGetComputerInfo | iex - $GetInstalledAV = irm $ScriptGetInstalledAV | iex - $payload = @{ ticket = $ticket CreateRestorePoint = $CreateRestorePoint | ConvertFrom-Json