I have a PowersShell form that has a start button with a few functions:
$StartButton.Add_Click({ Test1 Test2 Test3 Test4 Test5 })
While the script is calling the functions in the background, I am unable to interact with GUI. More specifically, I am unable to click on the cancel button to cancel/exit the script at anytime. The only time I can cancel the form is when it is completely finished running all the functions. Are there any ways to keep my start button active and cancel my form at any time?