With the $false value it will only unregister the VM.
Not sure what you mean by "Also, I want VM name which renamed by user should be same"
The unregister/register steps do not change the DisplayName of the VM
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference