Export data via script