Cannot write on WindowsApps directories and restore files

Download PsExec (previous link) from Sysinternals, a Microsoft subsidiary. Open an administrative command prompt in the directory containing psexec.exe and type the following:

psexec -s -i cmd.exe

Wait a moment, and you'll be presented with a command prompt running as SYSTEM, which has effectively full access to the WindowsApps directory. Use that prompt to move the file to the correct location. When finished, you can close the prompt and the parent console as you would any other.