Winformal is a small PowerShell module that allows you to write Winforms UI in script. This is a very simple UI written in Winformal:
New-Form -controls {
New-Button -Text "Click Me" -On_Click {
$this.Parent.Close()
} -Left 50 -Top 50 -Width 200 -Height 200
} -Show