AppleScript for inserting hyperlink inside powerpoint presentation

Hello All,

I'm trying to add hyperlink inside powerpoint presentation. Here is the code snippet

tell application "Microsoft PowerPoint"
activate

set aPres to active presentation
set newSlides to slides of aPres
set newSlide to item 1 of newSlides
make new picture at newSlide with properties {file name:"/Users/majumadhusudanan/Downloads/insert_hyperlink.ico", height:100, width:100, lock aspect ratio:true}

set sl to current presenter slide
make new hyperlink at end of active presentation with properties {hyperlink address:@"google.com", type:"hyperlink range"}
end tell

But when i run the above script, script editor throws the below error:
"Microsoft PowerPoint got an error: Can’t make class hyperlink."

What should be the problem? How do i fix this issue?

The goal here is to insert hyperlink at cursor point or selected object and link with text should display inside the slide.

Thanks
AppleScript for inserting hyperlink inside powerpoint presentation
 
 
Q