Chapter 20. The PowerShell and runspace APIs

This chapter covers

  • The PowerShell Application Programming Interface (API)
  • How to perform isolated and concurrent operations
  • Runspaces and runspace pools
  • Out-of-process and remote runspaces
  • Basic runspace management techniques

Here’s a rule I recommend: never practice two vices at once.

Tallulah Bankhead

So far, we’ve been dealing with PowerShell as a shell and scripting environment. In this chapter, we’re going to look at it as an Application Programming Interface (API). An API is a set of functions, data structures, and classes that let you build applications on top of the software exposing that API. For example, the PowerShell ISE is an application that uses the PowerShell API. Normally, ...

Get Windows PowerShell in Action, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.