Currently Ii am writing a GUI interface with Powershell, the problem is that the main script is getting big. I have to define all the buttons and text box and all the other GUI stuff. Is there a way to split the script, so the main script will only define the layout and the other GUI definitions in another script I can call upon.
Thanks.