Can somebody explain to me what is the difference between dot notation and select-object in Powershell? How these two methods of accessing properties differ internally?
I've noticed that running (ls).name gives basically the same results as ls | select-object name however running ls | select-object name | export-csv foo.csv gives me proper csv file while trying (ls).name | export-csv foo.csv gives me the file with length.
In both cases gettype() returns Object[]