How will you run it?
You could schedule it with SQL Agent, but the Agent would need to be able to access the folder.
It doesn't matter how you write a SQL script. It's just text. It can be written in notepad and saved, and in SSMS, you can open any file that's text.