Read vendor specific event value in provision script


I need to set some value upon receiving the vendor specific event in inform request.

For example: I would receive Device.ManagementServer.Vendor_Specific_Event in inform request and based on its value, I need to set some vendor specific property value.

I want to implement this as part of a provision script. How do I correctly get the Vendor_Specific_Event value in provision script? Please help here with your valuable comments.