A control method of a device, communicably connected to a control device, includes a rewriting control of firmware of the device. The rewriting control includes receiving a rewrite instruction of firmware of the device. The rewrite instruction includes first acquisition source information identifying an acquisition source of a script for rewriting firmware. The rewriting control further includes acquiring, based on a first acquisition source information, a script for rewriting firmware from an external device, and executing the script for rewriting firmware. By executing the script, acquisition of the firmware from an external device, control of the device so as to be in a state in which rewriting of firmware is enabled, transfer of the acquired firmware to the device, and rewrite of the firmware are performed.