PostgreSQL command is the same on all platforms but the reach to it is different on each platform (i.e CREATE DATABASE, DROP DATABASE and etc.) are the same depending only on the postgreSQL version you use.
I’m using (psql (15.2 (Debian 15.2-2)))
I think (CREATE DATABASE) command is from (psql (9))
You can review PostgreSQL Docs
PostgreSQL Docs