You can use below to do that:
Get-ChildItem -Path 'D:\SomeWhere' -Filter '*.pdf' -File | Rename-Item -NewName { $_.Name -replace '^([^,\s]+)\s+(.+)', '$1, $2' }
Regex details:
^ Assert position at the beginning of the string
( Match the regular expression below and capture its match into backreference number 1
[^,\s] Match a single character NOT present in the list below
The character “,”
A whitespace character (spaces, tabs, line breaks, etc.)
+ Between one and unlimited times, as many times as possible, giving back as needed (greedy)
)
\s Match a single character that is a “whitespace character” (spaces, tabs, line breaks, etc.)
+ Between one and unlimited times, as many times as possible, giving back as needed (greedy)
( Match the regular expression below and capture its match into backreference number 2
. Match any single character that is not a line break character
+ Between one and unlimited times, as many times as possible, giving back as needed (greedy)
)