Functions/Get-SpecialFolders.ps1
function Get-SpecialFolders { $SpecialFolders = @() [Enum]::GetNames([Environment+SpecialFolder]) | Sort-Object | ForEach-Object { $ThisSpecialFolder = @{ $_ = [Environment]::GetFolderPath($_) } $SpecialFolders += $ThisSpecialFolder } Write-Output "[Environment]::GetFolderPath(`"MyDocuments`")" return $SpecialFolders } |