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 ...
PS H:\> Install-Module -Name VMware.VimAutomation.Sdk PackageManagement\Install-Package : Package 'VMware.VimAutomation.Sdk' failed to be installed because: The process cannot access the file ...
It was my understanding that I would have to add a file system watcher for each of those directories, versus my current system where I can just add another entry in a database and the next time around ...