This script copies the favorites for the user logged on from IE to Edge even if they are redirected using folder redirection or not.
When Favorites in Internet Explorer is redirected using Folder Redirection for instance, the Edge browser in Windows 10 cannot import the favorites from IE. It can be run multiple times as it will only append new favorites from IE to the Favorites in Edge.
Edge favorites are stored here: %Userprofile%\appdata\local\packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\ac\MicrosoftEdge\User\Default\favorites
Note that the user must have started the Edge browser once before it works otherwise the user registry keys doesn't exist.