# Variables globales Add-Type -AssemblyName PresentationFramework # Récupérer le chemin du script PowerShell $ScriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path $DefaultFolderPath = Join-Path $ScriptPath "AgentEPM" $PsExecPath = Join-Path $ScriptPath "PsExec64.exe" # Fonction pour créer l'interface graphique function Show-InstallGUI { [xml]$xaml = @"