Execute Powershell command after deployement on VSphere

Hello,

I would like a powershell command to be able to be launched when the machine starts, I use VSphere like provider.

Here is an extract from my main.tf with a simple command:

clone {
template_uuid = data.vsphere_virtual_machine.TEMPLATE.id

customize {
  windows_options {
        computer_name = var.vm_name
        full_name = "***"
        admin_password = "***"
        auto_logon_count = 1
        run_once_command_list = [
        "powershell.exe /C New-Item -Path C:\temp\test.txt"
    ]

  }
    network_interface {}
}
  }

Currently, the window opens and closes and the command does not launch.

Is there an error?

Thank you!