Restarting a PostgreSQL database service in Windows using CMD

pg_ctl -D "C:\Program Files\PostgreSQL\15\data" restart