Install-Module Scriptdialog
Import-Module Scriptdialog
Start-Scriptdialog -Name 'Sample' -Remote -Form @{
Name = @{
Type = 'string'
Title = 'Name'
Required = $true
}
Age = @{
Type = 'number'
Title = 'PS Age'
}
}