Vijay,
Let me start it from the scratch.
What is your end to end scenario? You have mentioned Part 1 - Part 3 . Who is doing Part1 ? Who is activating Part2 and Stopping the channel in Part 3?
Part 1: Will use the script to concatenate the multiple files into one file. Then moves all files to director
Part 2: Will activate the SAP PI channels once started, which in turn picks the files from BI and pushes them to end client location
Part 3: will stop PI from polling, effectively turning it off (this is the one that failed)
Thank you!