Automatic Label

I have created buttons for various standard and custom programs.
I'm showing the application version on the label Like Visual Studio v16.8.3
Every time I update any of the programs, I have to edit its button to update the version number.

Is there a script that I can enter in the Label box to automatically update the text based on the application executable?

I can't think of a good way to do that.