Powershell - OUT-FILE USER MEMBERSHIP

#OUT-FILE USER MEMBERSHIP

(get-qaduser "BBunny").memberof | foreach {$_.split("=")[1].split(",")[0]} | out-file D:\documents\BBunny.txt