OctoPrint.control.sendGcode instead of a single string. This allows multiple-line Gcode to be interpreted properly.