Thank you for your inputs.
I tried this: TaskA->Script(only with Wait)->TaskB.
But When I execute the workflow, the script is executed first ,it waits for the duration mentioned in the script, executes TaskA and then TaskB.
Attached the screenshot.
If anything missing, Please let me know.