Architecture
Windows Utilities Menu uses a single-source-of-truth modular architecture so the interactive TUI, / live search, headless CLI dispatcher, and pluggable module packs remain synchronized.
flowchart TD
Entry["WindowsUtilitiesMenu.bat"] --> Menu["scripts/menu.ps1 (CLI + TUI + Search)"]
Catalog["scripts/catalog.ps1"] --> Menu
Plugins["scripts/modules/*.ps1"] --> Catalog
Logger["scripts/logger.ps1"] --> Menu
Menu --> PsHandlers["scripts/ps/*.ps1 (PS7 Domain Handlers)"]
Menu --> BatScripts["scripts/*.bat (Native Batch Utilities)"]
Menu --> NativeExe["Native Windows 11 Executables"]
Key Components
scripts\catalog.ps1: Defines 8 built-in native categories (repair,shell-ui,network,storage,diagnostics,security,admin-tools,power-boot), exposesFind-WumActionandSearch-WumCatalog, and auto-discovers drop-in pluggable modules underscripts\modules\*.ps1(shipping09_winget.ps1).WindowsUtilitiesMenu.bat: Thin Batch bootstrapper that sets UTF-8 (chcp 65001), discoverspwsh.exeviascripts\_common.bat, and forwards all arguments toscripts\menu.ps1.scripts\menu.ps1: Dual-mode PowerShell 7 entrypoint. Dispatches CLI flags (--run,--search,--list,--dry-run,--no-pause,--log,--help) immediately, or enters the compact flicker-free TUI with/live search, automatic UAC elevation for elevated PowerShell actions, and liveDDry-Run /LLog toggles.scripts\ps\*.ps1: Native PowerShell 7 domain handlers (repair.ps1,shell.ps1,network.ps1,storage.ps1,diagnostics.ps1,security.ps1,power.ps1,winget.ps1, plus shared_ui-helpers.ps1).scripts\logger.ps1: Optional daily diagnostic logger withSESSION START/SESSION ENDframing and 30-day log pruning.scripts\_common.bat: Shared UAC elevation (require_admin, dry-run aware),pwsh.exediscovery (find_pwsh), and delayed-expansion-safe console banners (banner).