Creating reusable scripts to manage export and import of virtual machine snapshots