Hello there!
I saw your post and I am more then certain that I would be a great fit for this job.
I would need a copy of your Virtual Machine, or a documentation about what exactly you are trying to stop start and fetch out and I will be more than happy to set it up locally on my machine and writing the bash script that you would like to have and give it to you.
Best Regards,
Csaba Gura