The issue arises because in some contexts, $locked = @() creates an empty array, and PowerShell expects op_Addition to append results to it. This works fine in the standard console but behaves differently in PowerShell Studio, likely due to the execution environment interpreting the variable differently.
Statistics: Posted by obnoxiousadult — Sun Dec 01, 2024 10:46 pm