Don't forget you need to double every slash command used in an event script. Also spaces in a slash command usually indicate a value assignment
Can't log in atm to check this but the above macro would translate to something like the followin scripts:
Code:
OnPress="pet='backoff' pet='backoff'
pet='preserve_master' pet='preserve_master'
pet='preserve_self' pet='preserve_self'
pet='attack' pet='attack'"