In PowerShell I would like to add a function to close the from when the button is clicked and after is calls the second script. mostly from what I am finding is make a second button and close() it.
thanks
Powershell
#Generated Form FunctionfunctionGenerateForm{######################################################################### 7/5/2016 10:31 AM# By: christnerw#########################################################################region Import the Assemblies[reflection.assembly]::loadwithpartialname("System.Windows.Forms")|Out-Null[reflection.assembly]::loadwithpartialname("System.Drawing")|Out-Null#endregion#region Generated Form Objects$form1=New-ObjectSystem.Windows.Forms.Form$button330=New-ObjectSystem.Windows.Forms.Button$InitialFormWindowState=New-ObjectSystem.Windows.Forms.FormWindowState...