Refresh next to custom fields

I would like the ability to tie a asset custom field to a script and next to the asset custom field there is a refresh icon. This would run the script and refresh either the field or the page when it was complete. The most common thing I use and need to see current data is an Idle script.