Run InGame Server as dedicated

Have a game with ingame server made on unity, and try to run that server with -batchmode -nographics commands. Problem is, game just running to main menu, and i dont know commands to run server from batch file. That game dont have dedicated server, and i dont have sources.
Any way to run that ingame server as dedicated?

I made dedicated server many times.

You have three options (Of course more… but what I know). You make something like config file for the server. The server read the config and know which map, which gamemode should be loaded if it is needed. Of course you need to code a script for it

You make command line reader with unity. So if you start server like so -batchmode -nographics -map bla1 -port 26503 your server should able to read all commands and execute it. You make for it a new scene named “commandlinereader” which handles first command lines and then chooses the server if(icommand line found) then go to server scene else go normal game scene

Easiest: You make just new scene put your script for the server with preconfigurations… like port, scene map… and if you build your server you put the scene in the buildsettings at the top. So the scene get loaded if server(game) is started