I would agree with Solution 2, however you can use UI Automation to achieve this.
UI Automation Overview[
^]
I will be applicable in the case you already have a windows application(From question Exe
B), and building a new application which will perform the click (From question Exe
A).