Adobe Media Encoder Scripting: Run from Commandline
I am fully aware that Adobe does not "officially" support Media Encoder scripting through ExtendScript in the way they do for most of the other applications. But it is possible:
https://stackoverflow.com/questions/2170163/is-adobe-media-encoder-scriptable-with-extendscript
However, it only seems that the script can be run by opening up the ExtendScript Toolkit and manually clicking the green arrow which causes the script to run.

Naturally, this is far from ideal. For other Adobe applications, such as After Effects, the script can be run from command line in the following fashion:
"C:\Program Files\Adobe\Adobe After Effects CC 2018\Support Files\afterfx.exe" -r "script/path/here.jsx"
(See here for a reference: Run .jsx File From Command Line Windows )
However, when trying the same thing for Adobe Media Encoder (replacing it with the appropriate path), no such luck. Although the Media Encoder window becomes active, the script does not run.
Another thought was to put `#target ame` at the beginning of the script and then try running it with ExtendScript directly. When doing so, you get this window:

Unfortunately, clicking "Yes" does absolutely nothing.
The goal here is to be able to run my .jsx script for Media Encoder in some kind of automated fashion, without having to open ExtendScript and manually click on the green arrow each time. Surely there's some way to do this, but apart from the methods I've tried above which don't work, I cannot think of anything. What exactly is clicking that little green arrow doing, and is there any way to emulate that click from command line? I'm willing to try anything to enable me to run this script completely automated.
Any ideas?!?
For reference, I am using Adobe Media Encoder CC 2017 and Windows 10 build 14393.
