This code demonstrates the use of Windows Forms in PowerShell. Two shortcuts have been provided to run the script. %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -NoProfile -file "PowerShellWindowsFormsApp.ps1"