Writing a Windows PowerShell Host Application
“Writing a Windows PowerShell Host application” is for developers who are designing or writing applications that host Windows PowerShell 2.0. The host application can, define the runspace where commands are run, open sessions on a local or remote computer, and invoke the commands either synchronously or asynchronously based on the needs of the application.
This document focuses on how to write host applications that use the PowerShell class (introduced in Windows PowerShell 2.0) to invoke commands programmatically. This class provides a simpler solution for creating host applications then those APIs available in Windows PowerShell 1.0.
In This Section
- Windows PowerShell Host Application Overview
- This topic describes what a host application is.
- Windows PowerShell Host Application Concepts
- This section describes the concepts that you should be familiar with when writing host applications.
- Examples of Host Application Code
- This section provides examples of how to write host applications, how to create runspaces and runspace pools, and more.
- Host Application Samples
- This section includes samples of complete host applications.