[scripts] updating example scripts to send events.