Creating a custom user interface

Windows PowerShell provides abstract classes and interfaces that allow you to create a custom interactive UI that hosts the Windows PowerShell engine. To create a custom UI, you must implement the System.Management.Automation.Host.PSHost class. Optionally, you can also implement the System.Management.Automation.Host.Pshostrawuserinterface and System.Management.Automation.Host.Pshostuserinterface classes, and the System.Management.Automation.Host.Ihostsupportsinteractivesession and System.Management.Automation.Host.Ihostuisupportsmultiplechoiceselection interfaces.