Thanks @Gabriel Cabral for pointing this out. You are right. It doesn't work.

I tried running this script in my PDI and what you are pointing out is correct.

 

Is there a way we can achieve? 

 

Thanks, and Regards,

Mahesh Kumar