import / copy, paste a script?

hello,
is it possible to write a script in notepad with the commands and import it or copy paste it somewhere in smartftp? i would do this:

cd domains
cd domain1.com
cd public_html
put index.php
cd ../..
cd domain2.com
cd public_html
put index.php
cd ../..
cd domain3.com
cd public_html
put index.php
cd ../..

etc.
so i have one file, and i would that file to be placed in all public_html folders of my domains... someone know how i could do this?