powershell start windows button click event code example Example: button click event powershell $TestButton.Add_Click({ })