PowerShell: Object Type, Properties, Methods
Everything is Object
PowerShell commands input (parameter args) and output are all dotnet objects. Each object has a type, and members (“member” means properties and methods.).
- A command output an object, this object may be a collection type.
- Collection is a type that is a list of objects. The elements of collection may all have the same type, or different.
![PowerShell help dir 2021-05-25 ZY62f](i/PowerShell_help_dir_2021-05-25_ZY62f.png)
help dir
, showing types of its input and output.
![PowerShell help dir 2021-09-09](i/PowerShell_help_dir_2021-09-09.png)
help dir
output, showing the types of paramater args.