There are a few options:
a) Use Cloud Init in combination with CloudBase
b) Use Cloud Init in combination with external Metadata server
c) Use automatically generated Answer file that retrieves VM name during generation
PVE is based on a toolset developed for Linux. The primary cloud customization tool in Linux is Cloud Init. Windows does not support Cloud Init natively. Hence, you either need to use the widely used CloudBase implementation, or develop your own custom procedure.
Cheers
Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox