Wire a executabe to a Widget

Hi,

detecting a Telephone number via Live Text is easy to configure, but how to create a widget wich does only follow:

application.exe “livetext(Telephone Number)”

Can someone explain me, how wire this action?

Thank You.