Windows custom Ohai plugin not executing

Hi everyone, I am having some issues with my custom ohai plugin running on my Windows node. From a command prompt I am able to run ohai -d c:\chef\ohai\cookbook_plugins\mycustomplugin and it works perfectly. However when ohai runs on its own my custom plugin doesn't run. What do I need to do to get ohai to run my custom plugin on it's own?

The section on installing custom ohai plugins should help. Writing Ohai Custom Plugins

Thank you for the link.

We added a line to our client.rb for our custom ohai plugins to run.

ohai.plugin_path += ['c:/chef/ohai/cookbook_plugins']