create and write a file in batch code example
Example: how do i write a batch file
You can use notepad(windows) or texteditor(mac) or other programs i personally prefer Atom
To make it work you have to save the file and name it something that ends on .bat