r/PowerShell • u/Narrow_Look4581 • 12h ago
Solved AdvantageBuilder: PowerShell GUI demo — super simple user input macro
I’ve put together a short demo showing how AdvantageBuilder can run interactive PowerShell scripts with simple GUI prompts.
(see comment for link)
The macro in the video is called Simple PowerShell GUI, and it demonstrates three built‑in commands:
prompt— ask the user for inputalert— display a messageconfirm— yes/no dialog
Here’s the full macro source:
# get user input
$age = prompt "How old are you?" "20"
# get user confirmation
$question = "Are you really " + $age + "?"
$reply = confirm $question
if($reply)
{
alert("Your age has been confirmed!")
}
else
{
alert("Your age has NOT been confirmed!")
}
In the video, I show the macro inside the macro list, open it in the Macro Editor, run it from the editor, then close the editor and run it again by double‑clicking the macro in the list.