Script copying to %localAppData% does not copy to correct directory

Script copying to %localAppData% does not copy to correct directory

Hi, I have a custom script that copies file from a network share to the %LocalAppData% directory of the logged in user. When I deploy through Desktop Central instead of copying to %localAppDat% or c:\users\xxx\appdata\local\yyy it copies to C:\Windows\system32\config\systemprofile\AppData\Local\yyy

Is there anyway to make the script execute as the local logged in user instead of the system user

                New to ADSelfService Plus?