I was trying to use power shell from within my C# application on Windows Sever 2008.This somehow took me sometime to located the DLL, so here it is.
Error 1 The type or namespace name ‘Management’ does not exist in the namespace ‘System’ (are you missing an assembly reference?) f:\samples\<application>\<application>\Program.cs 4 14 <application>
Added the reference to the System.Management.Automation.dll located at
C:\Program Files\Reference Assemblies\Microsoft\WindowsPowerShell\v1.0\System.Management.Automation.dll
Hope you find this post useful, Cheers !!!
Jeevan Bisht : Support Escalation Engineer