The below code demonstrates how to create a base WPF GUI in PowerShell. Comments are in the code.