Intune copy file to desktop

Hello
Please can someone help?
Im using this command to copy an RDP file to the desktop
Copy-File -Path $dirFiles\RDP.rdp -Destination $envUserDesktop\RDP.rdp

I use intune win32 to create the app and then deploy using the system or user context.
However, the desktop icon does not appear.

If I manually run the exe (or script as admin) on the machine, it works fine
Other copy actions of the deployment work (to standard folders)

The only thing unusual maybe is the desktop is redirected to onedrivebut the exe works when run

Thanks in advance

Intune copy file to desktop