That\'d actually be nice, I think, though maybe a bit too advanced for the average user.
Custom block, perhaps, with a very limited range of commands and extensive testing to ensure that it can\'t be abused?
Add in a section of the forums for \"Automation Module Code\" or some such with that...