$Directory = 'D:\Users\Public\Public.Language\Pronounce it Perfectly in Spanish 2e\Pronounce it Perfectly in Spanish 2e.Down.Load' $Shell = New-Object -ComObject Shell.Application $Folder = $Shell.Namespace($Directory) 1..512 | ForEach-Object { $prop = $Folder.GetDetailsOf($null, $_) if($prop){ [PSCustomObject] @{ Number = $_ Property = $prop } } }