• I used WAITFOR to achieve the same instead of script.

    thanks for your idea.