Add-Type -AssemblyName PresentationFramework, PresentationCore, WindowsBase, System.Xaml Add-Type -AssemblyName System.Windows.Forms $scriptRoot = Split-Path -Parent $MyInvocation.MyCommand.Path $defaultSettingsPath = Join-Path $scriptRoot "certy.settings.json" $defaultLogPath = Join-Path $scriptRoot "certy.log" $xaml = @'