Setting Parameter Values on 3rd Party Lights via Script

Hey guys,
I was wondering if there's a method for setting the parameter/control values on third party lights (for example the "Occlusion Samples" control on the UberEnvironment2 Base light) via script? There's documentation with functions for getting the controls of the default Daz lights (which can then be set with the setValue() function), however since this doesn't exist with third party lights I was wondering if there was a more general approach to accomplish this.
Comments
Get the light (e.g. var light = Scene.getPrimarySelection()), then use the findPropertyByLabel method to get the controller (var OccSamp = light.findPropertyByLabel( "Occlusion Samples" )), then just use setValue on that (OccSamp.setValue( myValue ) ).
Awesome, that should do the trick!