Is it possible to create classes in PowerShell so that it's possible to have all the form objects in one class, button clicks in a second class and the functions in a third?
Just an idea as I've got a script (+GUI) that's just under 900 lines of code but it's getting a little unmanageable, even though I've divided the code into three different blocks separated by comments (The three sections are functions, forms and click_events), it still means I've got to scroll from the top of the script to the bottom if I want to add a function to a click_event.