Restore superuser role to postgres user
Your problem is this line:

c:\Program Files\PostgreSQL\9.5\bin&gt;postgres.exe --single -D c:\Program Files\PostgreSQL\9.5\data


If there are spaces in a command line parameter you need to quote like this

c:\Program Files\PostgreSQL\9.5\bin&gt;postgres.exe --single -D "c:\Program Files\PostgreSQL\9.5\data"


This isn't really a problem with Postgres but just how command line works.