any good examples out there in the wild to reference. I know there are bunch of different ways to collect inputs and start calling functions just curious to see preferences/examples of how MVPs like yourself do it.
I'm not saying this is the BEST way of doing it, but it works, and seems reasonably elegant to me (with much credit to members of the Powershell forum in the Spiceworks community, particularly tfl):
$FirstName = .\Get-UserFirstName.ps1
} Until ($FirstName)
$LastName = .\Get-UserLastName.ps1
} Until ($LastName)
$Title="Enter Telephone Extension Number"
$Extension = .\Get-UserExtension.ps1 -verbose -Title $Title
} Until ($Extension)
Write-Output "Child scriptS gave me '$FirstName' and '$LastName', and extension number '$Extension'"
And here's the first script, Get-UserFirstName.ps1: