how to run postgresql script in cmd code example Example: psql execute sql file db=> \i my_script.sql