Read file objects and their selected properties A cmdlet is a PowerShell command. An object is a structured value with named properties; Name and Length are file-item properties. Selecting a property is different from finding text in a line. The display below is a conceptual example rather than an actual folder observation. Fixed folder contains alpha.txt, beta.txt and a subfolder drafts. Get-ChildItem -LiteralPath . -File | Select-Object Name Predicted display (order/format may vary): Name ---- alpha.txt beta.txt Pipeline passes file objects; Name is a property. drafts is a directory and excluded by -File. No file is changed by this listing. Separate question pipeline: Get-ChildItem -File | Select-Object Length Which shell passes objects with named properties? PowerShell or cmd