powershell to get files extensions in a folder 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