powershell gui on button click run fucnction code example Example: button click event powershell $TestButton.Add_Click({ })