4
PowerShell Variables and Data Structures
It’s time to really understand what we mean when we talk about variables. Variables are a common concept in computer science and mathematics, so it’s important to have a good grasp of what they are and how they are used in PowerShell.
We’ll start by exploring what a variable is, both literally and metaphorically. We will look at how we can use them in PowerShell and contrast the way PowerShell works with other languages. We will explore the concept of primitives, the basic building blocks of data, before moving on to the common data structures that PowerShell uses. Finally, we’ll have some fun with splatting, an important and useful technique for simplifying cmdlets.
In this chapter, we’re going to ...
Get PowerShell 7 Workshop 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.