1.when i apply this command in commandprompt it askes me to enter the password and i can perform all the action in database
psql -h localhost -p 5432 -U postgres -f test.sql newdb
2.but when i put this command,it shows me error " 'PGPASSWORD' is not recognized as an internal or external command, operable program or batch file."
PGPASSWORD=root psql -h localhost -p 5432 -U postgres -P root -f test.sql newdb
PGPASSWORD=root ...is for Linux