If your device (AVR) supports the discrete PowerOn and PowerOff commands and is configured accordingly, then another possibility is to add the extra commands in the device Power Off configuration (by selecting the option "My device needs more than one command to turn it on and off"). However, the limit is only 6 commands (allowing for 5 extra commands preceding the final PowerOff command).