Running an executable file (.exe) can be done with quite simple code, as demonstrated in this question. However, I rarely see anyone doing this and probably for a good reason.
I can understand, that it is probably affects the performance quite a bit (in a negative direction), but are there other pitfalls aside from that? A benefit could be, as I see it, a quite clean separation of code.
I have a specific case in mind, where I have to make a script which opens IE, navigates to a URL and fills a web form. The script will then be called from the main program (made in C#). So the overhead cost of running an .exe file in this case, would be relatively small. And the bonus would be, that others could make those IE automation scripts, without even knowing how my code works.
Am I missing something? Or do I actually have a decent idea?