It is explained in the video.
https://www.youtube.com/watch?v=gDPrZHb18Hg
The code for that bat file is in the description of the video. ONLY change the “YOUR VM NAME” or “CHANGE THIS” or “CHANGE THAT” or the “AND THAT” content. Otherwise, it can trash your VM.
Feel free to ask any questions.
Enjoy! ?