Getting filter value in script report

Have a look at [Tutorial] Script Report / Chart where I use filters extensively.