Recreating corrupted VMX file

During Vm’s VMX corruption, it loses its ability to power on VM since the VM will either go as “Invalid” or “Inaccessible” state. There are multiple methods to re-create VMXs files to get the VM up, this is a simple method to recreate VMX with minimal amount of time. This method(Script) will read the VMware.log