title: Is there a way to display a pop-up message box in PowerShell that is compatible with both Windows systems and MacOS?
body: <p>I know you can do something like this on PowerShell Version 5 (Shown Below) but is there any way to reproduce a popup message box that works on both Windows and Mac OS platforms?</p>
  
  <pre><code>$ButtonType = [System.Windows.Forms.MessageBoxButtons]::OK
  
  $MessageIcon = [System.Windows.Forms.MessageBoxIcon]::Information
  
  $MessageBody = "Message Body goes here"
  
  $MessageTitle = "Title"
  
  $Result = [System.Windows.Forms.MessageBox]::Show($MessageBody,$MessageTitle,$ButtonType,$MessageIcon)
  </code></pre>
  
  <p>Output of Code above</p>
  
  <p><a href="https://i.stack.imgur.com/k9gMC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/k9gMC.png" alt="enter image description here"></a></p>