Chapter 6. The PowerShell Script Language

Besides the commandlet infrastructure, Windows PowerShell (WPS) offers its own scripting language for the creation of command sequences in the classic imperative programming style. The PowerShell Script Language (PSL) includes variables, loops, conditions, functions and error handling.

Microsoft did not use an existing script language as the basis for this new creation, but was, according to their own words, “inspired” by the UNIX shell languages, PERL, PHP, Python, and C#. As a consequence, ...

Get Essential PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.