I noticed when I set my destination directory to place EldenRingBackups in "Roaming/EldenRing" that the logic to grab $userID does not expect an array list. The below should help, but ideally a check to see if an array is returned and pulling the first value would be included as well. Completely understand if this isn't worth your time lol, just thought I'd share. Appreciate the tool :)
I noticed when I set my destination directory to place EldenRingBackups in "Roaming/EldenRing" that the logic to grab $userID does not expect an array list. The below should help, but ideally a check to see if an array is returned and pulling the first value would be included as well. Completely understand if this isn't worth your time lol, just thought I'd share. Appreciate the tool :)
$userID = Get-ChildItem -Path $erBasePath -Name -Directory | Where-Object{$_ -match '^\d{17}'}