The correct version for Windows 10
psql -U postgres -c "SHOW config_file;"
Without ';' I have got error: psql: error: connection to server at "localhost" (::1), port 5432 failed: FATAL: database "config_file'" does not exist