It is explained in the video.
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.
Does this work for Linux as well?
JustAlex Glad you like it!