Test for Script / automation already running?

HI,

i have a set of scripts that besides calling an action , show the time of the script call itself (as a confirmation the script did actually run)

like:

opstaan:
  alias: Opstaan
  sequence:
    - service: input_select.select_option
      data:
        entity_id: input_select.activity
        option: Opstaan
    - service: switch.turn_on 
      entity_id: switch.sw_espresso_keuken_cl
    - service: scene.turn_on
      data:
        entity_id: scene.kist_opstaan
    - service: light.turn_on
      data:
        entity_id: light.bedside_table
    - service: notify.notify
      data_template:
        title: "Selected Activity: {{states.input_select.activity.state}} 
                at {{ as_timestamp(states.input_select.activity.last_updated) 
                | timestamp_custom ('%H:%M') }}"
        message: "{{ as_timestamp(states.input_select.activity.last_updated) 
                | timestamp_custom ('%H:%M') }}:Espresso is klaar over 10 minuten!"

working fine.

If i call the script a second time, no matter how much time spent, it shows the same message (provided no other script was called after the first call), with the same time. I mean the time of the first call, not the latter.

in the log however the (correct) warning script already running is displayed:

14

how can i get that message in the feedback of the notification ? with a correct time stamp of course.

cheers,
Marius

Was wondering if you ever solved this. Would also like to have automation test if the script is running.