Add-Type -AssemblyName PresentationCore,PresentationFramework $ButtonType = [System.Windows.MessageBoxButton]::YesNo $MessageIcon = [System.Windows.MessageBoxImage]::Question $MessageBody = "Are you sure you want to proceed?" $MessageTitle = "Confirm" $Result = [System.Windows.MessageBox]::Show($MessageBody,$MessageTitle,$ButtonType,$MessageIcon) Write-Host "Your choice is $Result"
No comments:
Post a Comment