Powershell - OUT-FILE GROUP MEMBERSHIP

#OUT-FILE GROUP MEMBERSHIP

(Get-QADGroup "The Acme Group").members | foreach {$_.split("=")[1].split("OU=")[0].replace("\","")} | out-file d:\documents\TheAcmeGroup.txt