CSR Generator script