We have a directory that we cannot delete because...
Cannot remove item C:\myDir: The process cannot access the file 'C:\myDir\' because it is being used by another process.
Inside Resource Monitor > CPU > Associated Handles, a search for myDir shows that cmd.exe is using our directory.
Inside Process Hacker, running as administrator, our attempts to terminate cmd.exe are met with this:
Unable to terminate cmd.exe (PID 4656): An attempt was made to access an exiting process.
Beyond restarting the computer, how else can we kill this process and thereby delete or rename our directory?