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



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?

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?