# Your Script Can Have a Window Too

On Windows, a script can open a small window of its own with .NET's Windows Forms: a form, a list, a button and a label, with a script block that runs when the button is clicked, so a colleague who would rather click can use your tool without typing a command.

![Cheat sheet for the lesson Your Script Can Have a Window Too: On Windows, a script can open a small window of its own with .NET's Windows Forms: a form, a list, a button and a label, with a script block that runs when the button is clicked, so a colleague who would rather click can use your tool…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/7f19d5d51f334bed8fe7870a17b2c969.webp)

- Category: PowerShell
- Level: Freelancer
- Tags: add-type, graphical-user-interface, net-types-in-powershell, powershell, script-block, windows-forms
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-windows-forms-cheat-sheet
