How can an expert convert text file (.txt) into a batch file (.bat)?

 
Hello dears
Can you help me
I have an expert that creates a text file (.txt) containing DOS commands (cmd).
How can an expert convert this file into a batch file (.bat)?
I am currently converting the file manually but would like it to be done programmatically by the expert
Metatrade 4