title: powershell windows form button link
body: <p>How would i link a buttton to open a batch file in windows forms using powershell, i have the following code below just need the add click event</p>
  
  <pre><code>$run = New-Object System.Windows.Forms.Button
  $run.Location = New-Object System.Drawing.Size(95,450)
  $run.Size = New-Object System.Drawing.Size(75,23)
  $run.Text = "Run"
  $run.Add_Click({   })
  $objForm.Controls.Add($run)
  </code></pre>