Gestion des messages dans Powershell

MessageBox

$UserResponse= [System.Windows.Forms.MessageBox]::Show("We are proceeding with next step." , "Status" , 4)
if ($UserResponse -eq "YES" ) 
{
#Yes activity
} 
else 
{ 
#No activity
}