How to make script report in frappe and How to apply filters in it?

How to make script report in frappe and How to apply filters in it ?