I have a mandatory InterfaceIndex parameter in my script.
When the parameter is not provided in command line PowerShell prompts for it but I would like to run Get-NetAdapter and display available interfaces before the prompt so that the user will know which value to select.
Is there a way to hook to missing parameter event or, at least, always run a command before parameters are parsed?