Execute a command when a preset trigger occurs.