Looks like you are also facing the issue with post installation steps for installing the postgres on Windows server.
The cluster initialization fails at the post-installation steps, this could happen due to below reasons:
1) Check whether any anti-virus software or other software such security software is running which could be blocking the execution of the vb script of the post installation step. 2) Use the admin user to install the postgres and make sure you have privileges on the data directory location.
Please check above and try the installation again and get back to us in case of any issues/queries.