Automatic opening a file passed as argument

Oh, sorry about that. I was confused and decided that you are talking about Windows installation. For Linux try to run onlyoffice-desktopeditors “path to file”
I prepared short video with my test:

If I misunderstood your request, please clarify it.