O'Reilly logo

Pro Windows PowerShell by Hristo Deshev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

11.1. Shell Hosts

The powershell.exe program is a console application. That fact, combined with previous experience with different shells, may lead us into thinking about command-line shells as console applications. That may not always be true. For example, the official PowerShell development guidelines explicitly state that no code should assume it is running in a console environment and that it should never ever output text directly to the console. Why is that? One of the design considerations for the shell was that it has to be easy to embed a shell in any application—and that really means any application, not just console ones. Applications that embed PowerShell are called shell hosts, and they can be all sorts of applications—GUI tools, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required