In any text editor u can write it. But it should be run be the command prompt. It'll have an extension such as .bat and .cmd