5 Scripting language: A crash course
In this book you wlll notice that you are not given general information with out putting it to use right away. In this case, though, I’m going to make an exception. You'll be writing scripts in this through this book, and that means including a certain amount of code. PowerShell's scripting language is super-simple, containing a few dozen actual keywords, and we're only going to use about a dozen in this book. But I need to get the most important of those into your head so that I can use them at will when the time comes. The goal of this chapter is not to provide complete coverage of these items but to give you a quick introduction. When you see them in use throughout the rest of the book, they'll begin to make more sense.
Tip
To learn even more about the material in this chapter, the first place to look is PowerShell's help system. Much of this is documented in about
topics. You can try looking at things like about_if
and about_comparison
_operators
. Or grab a copy of PowerShell in Depth (Manning, 2013, www.manning.com/books/poIrshell-in-depth).