transmitting a packet, including a command for controlling the device, and a script indicating processes to be performed to complete the command to the information terminal from the information processing apparatus after the communication with the information terminal is established,