It is possible, but it depends on what you want to do. You can create an .sql file and call that from the command line with sqlplus.

i.e.
sqlplus system/manager@mysid @mysqlfile.sql

But shell scripting is much easier in Unix/Linux. Dos is not a programming language. You can also do something with perl, python, etc.

What kind of script are you trying to write?