Refactor: New-Object System.Collections.ArrayList -> @() and used array += item to make code cleaner.