Maybe I'm looking at this wrong, but what I want to do is
conditionally dot source a .ps1 file if it hasn't already been loaded
earlier in my script.
I'm making use of the "Should-Process.ps1" script so that I can add
that great functionality to my own special purpose functions. Each of
these is currently maintained in separate scripts and each has a
dependency on the Should-Process.ps1 script. I'd like to just add a
line to dot source the Should-Process.ps1 file if the Should-Process
function is not already defined.
I can't seem to figure out how to tell if it is, though.
Thanks.
--
Kevin Buchan


