Using the Resource Object
The Generic Script resource DLL automatically creates an instance of a Resource object for each instance of a scripted resource. Your script can use the methods and properties of the Resource object to identify the resource, log information about the resource, and manipulate private properties.
Note that the Resource object is internally defined and is only available to your script when a resource is brought online.
Send comments about this topic to Microsoft
Build date: 11/28/2012