powershell get files in directory by extension code example
Example: powershell get all file extensions in directory
Get-Childitem -Recurse | Select-Object PSParentPath,Extension -Unique
Get-Childitem -Recurse | Select-Object PSParentPath,Extension -Unique