Chapter 3. Working with types
This chapter covers:
“When I use a word,” Humpty Dumpty said, in rather a scornful tone, “it means just what I choose it to mean—neither more nor less.”
Lewis Carroll, Through the Looking Glass
Most shell environments can only deal with strings, so the ability to use objects makes PowerShell different. Where you have objects, you also have object types. Much of the power of PowerShell comes from the innovative way it uses types. In this chapter, we’ll look at the PowerShell type system, show how to take advantage of it, and examine some of the things you can accomplish with types in PowerShell.