Automate Cert request process (CRS)

Windows Server 2019 create CSR for requesting Server Certificates
Do you have a way to to this CLI (PowerShell) on the server, a documented process?
Or, do you know who would?
I want to script this.

Does AWS or Terraform have a way to automate this?

Did you try google? Here is one of many results.

https://4sysops.com/archives/create-a-certificate-request-with-powershell/

I did, I will check this out. Thanks!