[Solved] Why is my ArrayList throwing a “PSCustomObject doesn’t contain a method for ‘foreach'” error when the ArrayList contains

[ad_1]

Why is my ArrayList throwing a “PSCustomObject doesn’t contain a method for ‘foreach'” error when the ArrayList contains <= 1 item, & only in PS 5?

[ad_2]

solved Why is my ArrayList throwing a “PSCustomObject doesn’t contain a method for ‘foreach'” error when the ArrayList contains <= 1 item, & only in PS 5?