Launching server from 3rd party app but it can't see the config file

This is such a niche thing and it’s not a major deal, just a little annoying. I can do VERY basic programming, and do enjoy modding the game and therefor have a lot of mods laying about. So I thought I’d code myself a little program that will show me previews of each mod, do all the moving around for me when it comes to adding and removing mods from a server, that kind of thing. It wasn’t originally the plan but I also decided to add a “Launch BeamMP” and “Launch BeamMP Server” buttons too. Just to keep literally everything in one place. Piece of cake, though every time I launch the server through my program it can’t see the config file so doesn’t launch due to not having an AuthKey. If I launch the server by going into the folder it’s in and clicking on the application it’s fine. Anyone know why?

How are you starting the server in your code? Is it being run with the working directory set to where the config is?
If it’s not explicitly set it will use wherever the application that started it is located.