I'm in need of a PowerCLI script to upgrade the VM tools version to execute Setup file from a folder on ESXi 6.5 environment.
Planning to upgrade the vmware tools version 10.3.2. This setup is copied to C:\ drive in all the servers. From there, script should select the the suitable version of OS file and execute the respective Windows OS version x32 or x64 bit file version.
Thanks in advance.
Is there a specific reason you want to do it that way?
If you copy the ISO for the desired version to the correct folder on the ESXi node, you can use the standard VMware Tools upgrade process.
See for example How to update the VMware Tools package on ESXi