title: "Are you sure?" via a messagebox in powershell
body: <p>Goodmorning developers,</p>
  
  <p>I am trying to make a delete function in powershell. I want to have something like this:</p>
  
  <pre><code>  function deleteEnv(){
      $result = [System.Windows.Forms.MessageBox]::Show('Are you sure?''Yes', 'No' 'Info')
      if(yes){
       //Delete
  }
  
  else {
  //do nothing
  }
  }
  </code></pre>
  
  <p>When I click the delete button a message box must be shown first with the two buttons yes or no. If yes then delete else do nothing. How can I do this?</p>
  
  <p>Kind regards </p>