Refactor script execution in TimesheetModule