What is the command to remove a user from AD group using Remove-QADGroupMember from the same domain and aswell as different domain?

What is the command to remove a user from AD group using Remove-QADGroupMember from the same domain and aswell as different domain?