Can i custom script report by html file?
You Can custom how the report will be printed using html file
https://frappeframework.com/docs/v13/user/en/guides/reports-and-printing/print-format-for-reports
Some Examples in ERPNext
https://github.com/frappe/erpnext/blob/develop/erpnext/payroll/report/salary_register/salary_register.html