Board Thread:Mod Discussion/@comment-6941549-20141123182729/@comment-25606771-20141123211959

In this case you don't save the file with the .bat extention, you save it with the .txt extention. It will still execute in Skyrim's console as a bat file by running bat filename.