I've found this script on github for changing root password:
https://github.com/sammcgeown/Change-HostPasswords/blob/master/Change-HostPasswords.ps1
But I think it's a bit complex, I just need a simpler script to use, hopefully.
vEXPERT - VCAP-DCV - Blog: arabitnetwork.com | YouTube: youtube.com/c/MohamedRoushdy