Write multiple bytes on I2C

At the moment, I don’t think you can send three consecutive bytes like that (though maybe two consecutive writeregister calls may be interpreted by the device that way - I kind of doubt it).

If the address is stored in non-volatile memory, you might try connecting it to another device like an Arduino or ESP board, writing the address, and then using it with your script.

Otherwise you may be stuck using an intermediate microcontroller to interpret scripted messages and send sensor values back. See here for an example: