most "Add-Type -AssemblyName" patterns replaced with adsisearcher
Get-NetGroupUsers combined into Get-NetGroup