Thoughts on SharePoint and PowerShell
[System.Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()
will return a path like: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\