1. A method for executing consecutive instructions in a client device in a mobile user application—device management server—client device environment, in which method: at least one instruction sequence is formed of said instructions in the user application, which instruction sequence comprise: command sequences including single commands, and; control structures including conditional commands, the instruction sequence is transmitted to the device management server; the device management server executes the command sequences and control structures in the client device.