Creating reusable scripts for virtual machine live migration