I've been working a bit lately with the Windows PowerShell hosting interfaces (PSHost and friends). I've got a basic host up and running (UI and all), but I'm still strugling a bit with some of the methods. So, here's one question for you PowerShell guys: What command will trigger a call to PSHostUserInterface.PromptForChoice()? (I can't write it if I don't know what the behavior is!)


Update: To answer my own question, two commands that use PromptForChoice are "export-console" and "remove-item -confirm".

Technorati tags:


Tomas Restrepo

Software developer located in Colombia.