Changing Name Order

Hi. Could someone please help me create a user command that can change a folder's name from: NAME, LAST NAME to LAST NAME, NAME?
Example: 'James Joyce' change to 'Joyce, James'

Thank you very much.

Can be done only with some not too trivial Regex.

Here you go:

Lol, so it IS trivial. :unamused:

Thanks a lot, leo! It works perfectly.