Hello @Roger Roger
yes, this is possible and here I could provide you with the following official Microsoft guide to Remove-ADGroupMember with Powershell:
Hope this helps with your query,
---------------
--If the reply is helpful, please Upvote and Accept as answer--