New-Shortcut icon not being embedded in shortcut

Hey all.

I’m trying to create a web shortcut with an icon, and this is what I’m using:

New-Shortcut -Path “$env:ProgramData\Microsoft\Windows\Start Menu\WebShortcutName.url” -TargetPath “” -IconLocation “$dirFiles\favicon.ico” -WindowStyle Minimized

I’ve got the .ico file directly in the Files directory. When the shortcut gets created in the Start Menu, though, it doesn’t have the same icon as before… it has the default IE shortcut one. Do custom icons not work for web (.url) shortcuts?