Mayank, the Edge Help Center covers a lot of information with regards to using the EMS in conjunction with the lua Script Resource. Few example properties, services and events scripts are provided with the EMS package as well.
I got my ans. in Two way Communication using Edge Help Center
Thingworx to EMS -> Using getProperties in EMS code create service , to receive value from Thingworx Properties changes.