I'm struggling here.
Using Powershell and GUI, how to automatically refresh data on a form?
Example with the script below, how to automatically update the label with the number of process executed by my computer?
Add-Type -AssemblyName System.Windows.Forms
$Form = New-Object system.Windows.Forms.Form
$Form.Text = "Sample Form"
$Label = New-Object System.Windows.Forms.Label
$Label.Text = "Number of process executed on my computer"
$Label.AutoSize = $True
$Form.Controls.Add($Label)
$Form.ShowDialog()