Create a popup message in Powershell
问题 I'm attempting to make a function that will allow me to popup a please wait message run some more script then close the popup Function Popup-Message { param ([switch]$show,[switch]$close) Add-Type -AssemblyName System.Windows.Forms # Build Form $objForm = New-Object System.Windows.Forms.Form $objForm.Text = "Test" $objForm.Size = New-Object System.Drawing.Size(220,100) # Add Label $objLabel = New-Object System.Windows.Forms.Label $objLabel.Location = New-Object System.Drawing.Size(80,20)