Fire a SNMP TRAP through script

May I ask any one to help me in getting the /snmp send-trap working through Script. I am finding very difficult to construct the source to add it to the /system/script