Not with yEd, no.
To do something like that, you will need to use the yFiles for Java library upon which yEd is build.
yEd does not and will not support command-line based usage of its features.
If you need a command-line based tool, you will have to develop one yourself - e.g. using one of the yFiles libraries.