PowerShell introduction
Fluence.Wpf.PowerShell gives Windows PowerShell and PowerShell 7 scripts dialogs, validated forms, progress windows, and custom WPF windows. Use it when a script needs a small operator-facing UI without building a separate application.
The shortest path to a useful prompt
- Check requirements for supported Windows and PowerShell versions.
- Install the module.
- Follow basic usage to import the module, show a message, and read a result.
- Choose a focused task below when the first prompt works.
Use controls and dialogs to compare the available interfaces. Use the functions reference for exact parameters, validation, return values, and lifecycle behavior.
The module keeps WPF work on its UI thread. Your script owns the work and decides what each result means. Dialog functions return typed result objects or values; they do not decide whether your operation should continue, retry, or roll back. Read the module architecture before sharing UI state across runspaces or embedding the module in a host that already has a WPF application.
Walkthroughs
- Show dialogs and messages
- Build forms and validate answers
- Show progress during long work
- Host a custom window from XAML
- Change theme, accent, and backdrop
- Use the module in an existing WPF host
The runnable examples provide complete scripts. Architecture explains the module's assembly and UI threading model, and Contributing covers source changes.
The Controls Tour opens on Inputs. Use the left rail to explore nine more categories, including the PowerShell-backed grid in Data and the moving source and solid fallback switch in Acrylic. To run it from a source checkout, follow the module staging steps, then use the commands in the examples catalogue. The captures below show the Inputs page in Light and Dark.
