Forum Discussion
Kelemvor
Professor
9 months agoOK. So that got me here. The script seems to work. It's giving me the correct number under stdOutput, but it's also giving me an error about -Scope that I keep getting. I don't know where that's coming from or what it means.

Mike_Moniz
Professor
9 months agoI've seen it before and I think it's something to do with how the collector is passing your code to PowerShell. I started looking into it at one point and I'm pretty sure the collector is the one doing the whole Scope and $OutputEncoding thing (so it can run and extract your output), but never really dug too deep into it. I've mostly just ignored it.