How to automate user and password creation(RDP) using terraform in GCP

HI All,

I wanted to have a username and its password automatically generated when VM instance is created which has OS of Windows versions and to RDP in that.
Could you suggest how terraform can be applicable?.
I tried using startup scripts with terraform version 0.11 but no luck.