When calling a script module from a provisioning policy, the script fails to fully run and the following error is logged in the event viewer:
Post-processing operation on object caused a policy violation.
Object: *DN of Object referenced by script*
Details: The 'Script Execution' policy encountered an error when running the script '*ScriptName*'.*ScriptName*: The directory property cannot be found in the cache.
The specified property '*RequestedProperty*' cannot be found in the property cache.