You must include:
with the @ or the start command
sqlplus login/pwd@connect_identifier @myScript MyArguments
where:
The exit error code is defined by the command whenever sqlerror and whenever oserror. Otherwise, it's always a SUCCESS.
cmd /c @echo @/mypath/myScript | sqlplus login/password@connectionString & pause
The @ symbol before a command supress the command from being echoed to the console. It's useful in situations where you don't want to turn echo off, but don't want to see the command echoed on the screen.