The simplest method is to associate a file type to your program:
https://stackoverflow.com/a/52009412/7376238
Then you can parse the file as a parameter in the main method:
https://stackoverflow.com/a/36819292/7376238
In an Acumatica action event handler, throw a file redirection to open the program:
https://stackoverflow.com/a/46796335/7376238
Another method is to register a URI scheme handler for your program in Windows:
URI scheme launching
Those are special URL that can open a Windows program with parameters. A common example is the 'mailto' URI scheme that opens a email client. Example: mailto:email@domain.com
In an Acumatica action event hander, throw a URL redirection to open the program:
https://stackoverflow.com/a/54540253/7376238