you can do it using sqlcl in the same way how you would do it using SQL PLUS, from command line:
sqlcl user/password@host:port:sid @file.sql
file should be in the same directory where sqlcl is.
This solution is the best option if you are trying to execute a lot of instruction on sql file.