First, I apologize if this is the wrong location for this question! I wasn’t sure which forum was correct.
I’m in a book group at work doing Powershell Scripting in a Month of Lunches. We were doing the last bit in chapter 12 (12.6.1. “Start Here” https://livebook.manning.com/#!/book/learn-powershell-scripting-in-a-month-of-lunches/chapter-12/1)
And we could only get that code to run using except in the ISE with dot sourcing. It wouldn’t run at all in a regular PS shell.
Any thoughts as to why this would be so? Is it expected behavior from that sample code?