Forcing scaling factor

Thanks this solution indeed works. But is cumbersome and not automateable.

Is there a programatic way to force it? Since everything is automated in my case, everything gets compiled (including editorhost) and started via command line. I would like to be able to detect a flag at runtime and enforce low resolution in code.

Thanks
Yan