Hello,
With macros created in the Key Editor, Undo will undo the entire chain of commands. With Pre/Post commands in PLE or LE, it will only undo the latest command.
Pre/Post commands triggered by PLE or LE should behave the same way as macros and undo all Pre/Post commands together with the PLE chain.