Using SQL Plus, you can run a script with the \"@\" operator from the command line, as in:
c:\\>sqlplus username/password@databasename @\
@find /v "@" < %0 | sqlplus -s scott/tiger@orcl & goto :eof select sysdate from dual;