You should check out vim's remote functionality to open files in an already running instance https://vim-jp.org/vimdoc-en/remote.html
Edit "file.txt" in server "FILES" if it exists, become server "FILES" otherwise:
gvim --servername FILES --remote-silent file.txt