In the following GitHub project we include some useful scripting examples. These examples aim to show how to achieve different functionalities with help of scripting.
https://github.com/infofabrik/reportserver-samples