Powershell dot notation vs select-object Powershell dot notation vs select-object powershell powershell

Powershell dot notation vs select-object


The select-object cmdlet wraps the result in a new object. To see the differences (look at the Type) use the get-member cmdlet.

(ls).Name | get-member

and

ls | select-object Name | get-member