Disbatch – turn a PowerShell/batch script into a GUI, with a risk analyzer Disbatch, a new Windows tool, converts PowerShell and batch scripts into graphical user interfaces with a built-in risk analyzer. The self-contained executable generates controls from script parameters, analyzes scripts for risky behavior, and runs them in an embedded terminal. The tool, built quickly with AI assistance, is released as a personal project with caution advised due to lack of hardening and extensive testing. Give your scripts an instant GUI. Point Disbatch at a .ps1 or .bat / .cmd and it reads the script's parameters, generates the matching controls — folder pickers, checkboxes, dropdowns, number and text fields — statically analyses the script for risky behaviour, and runs it inside a live embedded terminal with a progress bar. One self-contained Windows .exe , 100% offline , no runtime to install. ⚠️ "Vibecoded" — use with caution.Disbatch was built quickly and iteratively largely with an AI coding assistant as a personal project. It works, but it hasnotbeen hardened, audited, or extensively tested. Run it at your own risk — especially when pointing it at scripts you don't fully trust. The built-in risk analyzer is a heuristic aid,nota security guarantee. Open a script → get a GUI. Every control is generated from the script's param block; the live command preview shows exactly what will run. Built-in risk analysis. Risky lines are tinted inline, and the panel lists every finding Warning / Caution with its line — click one to jump to it. Heuristic, not antivirus. Risk-gated Run. When the analyzer flags Warning-level patterns, Run stays disabled until you tick the acknowledgment — and required fields must be filled first. Heuristic, not antivirus. The mapper. Fix what auto-detection missed — change a control's type/label, mark it required, edit dropdown options, add custom controls, and bind each to the exact $variable / %N token in the script. Batch files too. A .bat 's %1 / %2 are detected as ordered arguments. Pick-to-bind. Adding or fixing a control? Click the exact $variable or a %N in a batch file it should drive — the green chips mark every bindable token, so there's no guessing. Read-only preview + analysis — the Script tab pairs a soft-wrapping preview with the findings panel this demo is clean: 0 findings . A real embedded terminal the same ConPTY mechanism Windows Terminal uses is live from launch, with Pause / Stop / Clear and a progress bar. Auto-generated UI — a PowerShell param block read by PowerShell's own AST parser — parsed, never executed or a .bat 's %1 / %2 positional args becomes a form, no config required. Two tabs Script — read-only, soft-wrapping preview with risky lines tinted inline and a risk-analysis panel + metrics. Click a finding to jump to its line. Controls — the generated form, a live command preview with Copy , and Run. Embedded ConPTY terminal — a real, interactive PowerShell terminal the same pseudo-console mechanism Windows Terminal uses , rendered inside the app. Run sends the composed command into it; you can also type in it directly. Pause / Resume freezes the running script exactly where it is OS-level thread suspend and continues from that point; Stop sends Ctrl+C; Clear wipes the screen. Risk analyzer — flags risky capabilities download-and-run, encoded commands, keyboard hooks, persistence, shadow-copy deletion, … at two levels: Warning gates the Run button until you acknowledge and Caution FYI . Click a chip to filter. Heuristic, not antivirus — expect false positives and false negatives. Mapper — fix what auto-detection missed: change a control's type/label, mark it required, add custom controls, and pick-to-bind by clicking the exact $variable / %N / set VAR / $env:VAR token in the script. Fill dropdown options by hand. Hints & remembered values — per-script notes and your last-used input values are saved to a