Hi. I have a .ps1 script which defines a function.
When I run that script in ISE, that function is added to the functions list (dir function:) and I can use it in the ISE console just fine.
However when I start a regular PSH console session (powershell.exe), run the .ps1 script (dot-source it actually), I can’t use the function and it’s not added to the list (dir function:)
This is a first time something like this happened to me. Any idea what could be the problem?
Thanks in advance