I'm trying to validate a user input made in a textbox. But instead of always adding a button that he has to press i would like to check it automatically when the user hits the "Enter"-Key.
So my question is: Can PowerShell call a function as soon as the user hits the Enter in a specific textbox?
Simple example in Windows Forms: