Using pg_ctl will work for almost all on-prem postgresql installs on my Mac OS a startup looks like this:
sudo -u postgres /Library/PostgreSQL/15/bin/pg_ctl -D /Library/PostgreSQL/15/data restart
Clearly (maybe 😉 my installed postgresql is version 15 and it. is installed here: /Library/PostgreSQL/15