How it works...
We saw while reading about the Core and its capabilities, that PowerShell, most of the time, returns objects. And every object can have objects within itself. Going by the same path as that of .NET, a member access operator can be used to select the members (which could be properties or methods). Properties are addressed by simply using the property names, while methods need arguments passed to them (an empty pair of parentheses is still needed if no argument is being passed).
The parameters of a cmdlet are objects of the output that the Get-Command cmdlet returns. Therefore, calling Get-Command with the cmdlet, Invoke-Command , returns data about Invoke-Command as the output object. This can be further broken down to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access