The DynamicCsToPowerShell library provides a cleaner syntax when executing PowerShell code from C#.
See Running PowerShell from C# with a hint of dynamic
##Copyright Copyright (c) 2011 Frederic Torres
You may use DynamicCsToPowerShell under the terms of the MIT License.
##Contact fredericaltorres@gmail.com
##Source Code:
https://github.com/fredericaltorres/DynamicCsToPowerShell-Library
Date Version Features/Bug Fixes
--------------------------------------------------------------------
2011-12-24 0.1 Creation
2012-01-27 0.1 Added asp.net mvc sample