Run a PowerShell script on button press.


  • Hello everyone,

    I have created a powershell script and I want to make it run when I press a button, therefore the code needs to go in between here:

        Private Sub Button1_Click(sender As Object, e As EventArgs) Handles httpbutton.Click
        End Sub

    I have installed this plugin and it reads the code fine: (I am using VS 2013)

    Is there any way I can execute some PowerShell code on the httpbutton.Click private sub?

    Thank you in advance!

    Kind Regards,


    Thursday, December 03, 2015 7:40 PM