Commit Graph
1 Commits
Author SHA1 Message Date
Gurucharan SandGitHub e0f434f4ea Add Run-ScriptMenu.bat self-elevating script launcher
Introduce a new batch file, Run-ScriptMenu.bat, that:

    Elevates itself once via UAC at startup

    Auto-discovers up to 9 .ps1 files in its folder

    Presents a numbered, single-keystroke menu (0 = Exit)

    Runs the selected script in the same elevated session

    Loops back for multiple executions without re-prompting UAC

Uses  Start-Process -Verb RunAs for elevation

Leverages CHOICE and delayed expansion for input handling

Sorts scripts alphabetically for predictable ordering

Exits cleanly on invalid input or when “0” is selected
2025-05-22 13:19:29 +05:30