From 7252ef245a96e83387ab44d081702d51084400f5 Mon Sep 17 00:00:00 2001 From: Joeri Date: Fri, 20 Feb 2026 16:32:46 +0100 Subject: [PATCH] - --- cleanup.ps1 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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