$ShellFolders = Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders'
$ShellFolders.Desktop
Check the User Shell Folders registry keys for the path to the user’s desktop. This is better than using environmental variables as they may be using folder redirects.