Getting rid of Keyboard Maestro using Apple Script (take 2)

One last thing I want migrate out, but I don’t think this one is possible. It’s to look at the web page that is ‘fronted’ in any browser (Vivaldi, Brave or Safari), get its URL and save it on to the desktop as a web shortcut file.
The KBM macro is: