I have a basic .sql script which has the following

shut.sql
connect internal
shutdown immediate
exit

and this is called from a batch command similar:

set ORACLE_SID=DBNAME
svrmgrl @shut.sql

Regards