Read the current folder options
**HideFileExt** and its neighbours live under the Explorer Advanced key. The values are what Explorer actually uses, regardless of what the dialog shows.
Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' | Select-Object HideFileExt,Hidden,ShowSuperHidden,LaunchTo
Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' | Select-Object * -ExcludeProperty PS*