importing-a-sql-db-dump-postgres11 pgadmin4
try this 

C:\Program Files\PostgreSQL\9.6\bin&gt;psql -U postgres dbname &lt; D:\testdump.sql


or 

C:\Program Files\PostgreSQL\9.4\bin&gt;psql -U postgres dbname &lt; D:\testdump.sql