UPD: copy_group.ps1 changed to flatten_groups.ps1. Now script takes group list from file.