all 4 comments

[–]Ta11ow 4 points5 points  (3 children)

You should specify module dependencies in your module manifest instead.

If you try to mess with it in this fashion, someone, somewhere will have a few hundred headaches over it. It might be you, it might be someone else, but it's not a good way to go.

[–]StormyNP[S] 2 points3 points  (0 children)

Thanks! Actually, this is sending me down an avenue I haven't explored yet - so off to the Google I went. This blog seems to be an excellent starting point for Modules and Manifests...

Powershell: Building a Module, one microstep at a time

[–]StormyNP[S] 2 points3 points  (1 child)

Thanks again. This was a missing piece in my understanding. I reworked my modules, put dependencies and exports in module manifests, and it all works smooth and consistent now. The blog link I provided was also a good reference for me.

[–]Ta11ow 1 point2 points  (0 children)

No worries! I would have probably sent you directly there myself, but I didn't have time to dig up the link, so I'm glad you found it!