split out render.exe command creation into renderCommand method so it can be used elsewhere.