Running Mac Standalone Player In Batchmode

I have a server build that I’d like to run in batchmode, however I get errors in terminal whenever I try to run the build with the batchmode argument. Console Input/Output below:

[PATH_TO_BUILD]/MacBuild.app -batchmode
-bash: MacBuild.app: command not found

open [PATH_TO_BUILD]/MacBuild.app -batchmode
LSGetApplicationForInfo() failed with error -10814 while trying to determine the application with bundle identifier atchmode.

Can anyone tell me what I’m doing wrong?

Try this;

[PATH_TO_BUILD]/yourApp.app/Contents/MacOS/yourApp -batchmode

You can also add -nographics -logfile log.txt