How To Write a Console Application in PowerShell with Add-Type
Windows PowerShell CTP3 has a lot of very cool things. CTP2 introduced the Add-Type cmdlet, which allowed you to dynamically compile C# in PowerShell. It was actually possible to use the CompilerParameters to Add-Type to make a console application, but it wasn't particularly easy. In CTP3, we've made this a lot easier to do. ...