I don't know the issue you are facing and what are you trying to achieve. do you want to do psql command and not in the gui PgAdmin4 where you can do more easily?
Here i am make new 3 database from pgAdmin4 and psql command
- From PgAdmin4 gui and the database name warehouses

- From psql command doing with owner name warehoused1

And as you can see in pic 2 the result it show the database too
- From psql command just create database without owner (default) name warehoused2

And see the result? no problem at all. Now see in PgAdmin4

It shows too in PgAdmin4. I can't give the solution because i don't know the issue you are facing.
Edit : The reason you have different result in your psql and pgAdmin because you have 2 postgresql in your system and your path lead to other postgresql it means your psql connect to different server.