Great work. However, I can't get it to work with Cyrillic alphabet. I'm using
Write-Host $shortcuts
foreach ($shortcut in $shortcuts) {
# Use pttb.exe to pin the shortcut to the taskbar
Start-Process -FilePath $pttbPath -ArgumentList $shortcut.FullName -NoNewWindow -Wait
Write-Host "Pinned $($shortcut.FullName) to the taskbar using pttb.exe"
}
Brave.lnk
Pinned C:\Users\Public\Desktop\Brave.lnk to the taskbar using pttb.exe
Інтернет.lnk
ERROR_FILE_NOT_FOUND: "C:\Users\Public\Desktop\"
Pinned C:\Users\Public\Desktop\Інтернет.lnk to the taskbar using pttb.exe