I am having a strange problem, and I need help figuring out what might be causing it.
I downloaded a function. I ensured it was unblocked so I could run it without warnings. I load it into ISE and click the execute script icon. In ISE's command line window I can now see and use the function. (get-command <functionname>)
I open a PowerShell command line window, not part of ISE. I dot-source execute the script. The function is not recognized in the PowerShell window. I have tried with both elevated and non-elevated windows. Tried on two different systems and get the same results. From one of the windows I manually key in a simple function definition. It is available.
Appreciate any hints on why it seems to work fine from ISE but not from a PowerShell window. Can't find anything in the script that seems to be testing for ISE pre