Here’s the Get Name script:
tell application "Shortcuts" to get name of front window
Here’s the Get Address script:
tell application "Shortcuts"
set shortcut_name to name of front window
set shortcut_id to id of shortcut shortcut_name
end tell
return "[" & shortcut_name & "](shortcuts://x-callback-url/open-shortcut?id=" & shortcut_id & ")"