This is my experience with this case if anyone want to solve like this scenario in simple way:
First to execute .exe files in OS in windows like “Notepad, cmd, calcs…etc” it’s impossible to do it in Chrome and firefox without plugins because security issue. In IE you can activate ActiveX to do it but will still always ask you to execute or not every time you refresh the page.
If you want to make it in Chrome you can use IE tab extension which will allows you to access IE option through opening new tab specialized for IE.
the script like this:
WshShell = new ActiveXObject("Wscript.Shell"); //Create WScript Object
WshShell.run("C://Windows/cmd.exe"); // Please change the path and file name with your relevant
available path in client system. This code can be used to execute .exe file as well
<H1>Example Running Command File from Browser Client Site Using Java Script</H1>
Clicking a button executes a Batch file
<INPUT TYPE=Button Name=btn Value="Test Java Script" onClick="myFunction()">
Lastly many thanks for Guys in this great forum which I learned a lot from them