isn't this is a BR ?
you should add the script in the wait for condition script of the workflow

ChaitanyaILCR_0-1735819698783.png

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya