The string concatenation in your code creates the following string:
C:\Program Files\Internet Explorer\iexplore.exewww.google.com
Since the extension .com
indicates an 8-bit DOS binary a .pif
shortcut is created instead of a .lnk
shortcut.
You need to specify arguments to the executable via the Arguments
property to make the shortcut turn out the way you want:
Set sh = CreateObject("WScript.Shell")
Set shortcut = sh.CreateShortcut("C:\Users\owner\Desktop\Internet Explorer.lnk")
shortcut.TargetPath = "C:\Program Files\Internet Explorer\iexplore.exe"
shortcut.Arguments = "www.google.com"
shortcut.Save