Command for exporting resources to CSV