I am able to get the owner with the below code...
Not sure how to change the owner. Below captures the owner name of the VCAC VM.
var ownerEntity = virtualMachineEntity.getLink(vCACHost,"Owner")[0];
var ownerName = ownerEntity.getProperty("UserName");