PowerShell could always script almost everything in .NET, but, prior to the recent CTP2 you could not script Windows Presentation Foundation (WPF) in PowerShell.
Now you can script everything that WPF can do within PowerShell.
This means you can write pretty sleek looking UIs in nice little PowerShell scripts.
There are a lot of things you can do with this capability, but let’s start things off simple.
Windows Presentation Foundation (WPF) is a set of .NET libraries for making next-generation user interfaces. In order to script WPF classes, you have to start them in a Single Threaded Apartment (STA). Luckily, starting in CTP2, you can run code in an STA a few ways in PowerShell.