Now that you know why the program cannot access the file, it is time to figure out which process has already put a lock on them. The error could appear in any program ...
PackageManagement\Install-Package : Package 'VMware.VimAutomation.Sdk' failed to be installed because: The process cannot access the file ...