Fixed the Notification errors

This commit is contained in:
2026-03-30 12:02:40 -07:00
parent 9e9804b1b1
commit 41fc743026
3 changed files with 38 additions and 36 deletions

View File

@@ -93,17 +93,7 @@ try {
# --- Notify user that the replay was saved ---
$notifyScript = Join-Path $PSScriptRoot 'Show-Notification.ps1'
Start-Process -FilePath 'powershell.exe' -ArgumentList @(
'-STA'
'-ExecutionPolicy', 'Bypass'
'-NonInteractive'
'-WindowStyle', 'Hidden'
'-File', $notifyScript
'-Type', 'ReplaySaved'
'-ContactNumber', $config.ITContactNumber
'-FileName', $savedFile.Name
'-FileSizeMB', $fileSizeMB
) -WindowStyle Hidden
Start-Process -FilePath 'powershell.exe' -ArgumentList "-STA -ExecutionPolicy Bypass -NonInteractive -WindowStyle Hidden -File `"$notifyScript`" -Type ReplaySaved -ContactNumber `"$($config.ITContactNumber)`" -FileName `"$($savedFile.Name)`" -FileSizeMB $fileSizeMB" -WindowStyle Hidden
Write-Host "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') [INFO] User notification launched."
return $true