PowerShell Move AD user from one group to another

Hi,

I need a script which can move users from exiting AD group to another. I need to make sure that every user I want to move to the new group is a member of the old group, if the user is a member of the old group - delete it from the old group and move it to the new group, if the user is not member of the old group, skip and don’t move it to the new group.
is it possible?

example :
User1 - member in the old group (i need to move him)
User2 - he is in the .csv list but i don’t need to move him because he is not a member in the old group.

also i need to delete the members in the old group after moving them.
anyone can help me with this script?
thanks