I run EmbyServer on macOS. In order to support various automation tasks I need to be able to stop and start the EmbyServer from the command line (i.e. from a shell script). I tried this:
osascript -e 'tell application "EmbyServer"' -e 'quit' -e 'end tell'
but it doesn't have any effect so clearly something more sophisticated is needed.
Can someone please advise what command(s) I need to issue to stop / start the server from a script.
Thanks.