You know by now that everything we do in PowerShell will eventually generate objects. But how can you make use of this behavior? In the following recipe, we will thoroughly examine objects with the Get-Member cmdlet. Along with Get-Command and Get-Help, Get-Member is going to be the most important cmdlet in your toolkit.
Exploring object properties
Getting ready
Install and start PowerShell Core.
How to do it...
Perform the following steps:
- Instantiate a new object and store it in a variable:
$folder = Get-Item -Path .
- To find out what the object can offer, we can...