So far, from what we have seen, two things are clear to us:
- An object output feels richer and makes using the object easier
- An object can have more objects within it
We have handled the first point using the Select-Object cmdlet, wherein we picked only the object's properties that we needed, and omitted the rest. This recipe is designed to break down the second point for better understanding.
Let us step into this recipe with one thing in mind: objects can contain objects within them, which in turn can contain more objects within them. To demonstrate this, we will use the Get-Process cmdlet.