I have an IE toolbar with a button that runs a bat script with Process.Start. I tried also with a PS script.

When I open IE, the button works. As soon as I navigate to another address or open a new tab, it fails running the script.

I think it has to do with the toolbar restarting each time I navigate to a new address or open a new tab.

private void assign_Click(object sender, EventArgs e)
}Any help appreciated.