You can use P/Invoke. Lee Holmes has an example of how to do this from PowerShell here. There's an example of how to use SHGetKnownFolderPoath
here.
Alternatively, you might just be able to use Environment.GetFolderPath
:
PS> [Environment]::GetFolderPath('CommonApplicationData')
C:\ProgramData
You can get the list of available options by the following:
PS> [Enum]::GetNames([Environment+SpecialFolder])