Open command prompt and execute the following commands:
set PGPASSWORD=<password>
set PGUSER=<user_name>
set PGDATABASE=<database_name>
set PGPORT=<port_number>
cd C:\Program Files (x86)\Novell\ZENworks\share\postgres\bin
psql
Type quit to exit from the prompt