I\'m looking to find out how to automatically set the keyboard focus to a text box in powershell.
I have a script that asks the user to select an option from a drop
This is an alternative to the answers of @CB and @Shay Levy (none of them worked for me):
$objForm.Add_Shown( { $objTextBox.Select() })