I needed a fairly complication menu system in PowerShell so decided to create a function that builds a menu from passed variables. This made the code much easier to read, separating the menu system code from the code that really does stuff.
Download the script here
Download the script here