Send the three GCode commands with one OctoPrintClient.control.sendGcode command by sending an array of strings instead of three separate commands with individual strings.