powershell list file with extension and save 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