This shim fails calls to RemoveDirectory() when called with a path matching the one specified in the shim command-line. Only ...

This shim fails calls to RemoveDirectory() when called with a path matching the one specified in the shim command-line.  Only a single path is currently supported.  The path can contain environment variables, which will be expanded when the shim attaches.  You should specify the exact path against which you wish to match, i.e., partial paths are not supported.