From ade504a85d6a8fbdb8be2ed06a801916f0f710eb Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Sat, 4 Jan 2025 02:03:06 -0500 Subject: [PATCH] Update SVSTaskGate.ps1 --- SVSTaskGate.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SVSTaskGate.ps1 b/SVSTaskGate.ps1 index 16eb909..321921e 100644 --- a/SVSTaskGate.ps1 +++ b/SVSTaskGate.ps1 @@ -10,7 +10,7 @@ if (-not $Global:LogCache -or -not ($Global:LogCache -is [System.Collections.Arr $Global:LogCache = New-Object System.Collections.ArrayList } - +#region Write-Log # Check if the Write-Log function exists if (-not (Get-Command -Name Write-Log -CommandType Function -ErrorAction SilentlyContinue)) { # If the Write-Log function doesn't exist, create the Write-LogHelper function @@ -127,6 +127,7 @@ else { # Example usage of Write-LogHybrid Write-LogHybrid -Message "This is a test log message. Write-logHybrid" -Level "Info" -TaskCategory "TestCategory" -LogToEvent:$true Write-Log -Message "This is a test log message. Write-log" -Level "Info" -TaskCategory "TestCategory" -LogToEvent:$true +#endregion function Install-SVSMSP { @@ -354,7 +355,7 @@ function Get-N8nWebhookData { } } - +#region HTML & CSS # Define the HTML Content with an Off-Boarding Tab function GetHtmlContent { @" @@ -817,7 +818,7 @@ function GetHtmlContent { "@ } - +#endregion # Save and launch the HTML