That concludes this chapter. It is time to take a break so that you can assimilate what you have learned. Later, experiment with different data types, create variables, see what type of objects they contain, and what members each object contains. We did not explicitly talk much about variables in this chapter, other than environment variables, but we used variables in almost every recipe. Ponder over (or, better yet, practically try out) these questions:
- What can be assigned to a variable?
- What does the variable contain—the entire object?
- Can I refer to one single property of the object that a variable contains, if it contains the entire object?
- Can I assign a certain member and not the entire object to a variable?
- What if the member is a whole object in itself? (Hint: use Get-Member on the variable to find out.)
- What happens when I use Select-Object...