diff --git a/cleanup.ps1 b/cleanup.ps1 index 10452fb..c4488f2 100644 --- a/cleanup.ps1 +++ b/cleanup.ps1 @@ -76,13 +76,13 @@ if ($result -eq [System.Windows.Forms.DialogResult]::OK) { exit } - # Run scripts - $CreateRestorePoint = irm $ScriptCreateRestorePoint | iex - $GetComputerInfo = irm $ScriptGetComputerInfo | iex - $GetInstalledAV = irm $ScriptGetInstalledAV | iex - # Send webhook try { + # Run scripts + $CreateRestorePoint = irm $ScriptCreateRestorePoint | iex + $GetComputerInfo = irm $ScriptGetComputerInfo | iex + $GetInstalledAV = irm $ScriptGetInstalledAV | iex + $payload = @{ ticket = $ticket $CreateRestorePoint = $CreateRestorePoint | ConvertFrom-Json