@Sanchila, Namindu Thank you for your patience.
Yes, it is possible to start/stop the running CDCs as part of pre- and post-automatically. For reference, I have the sample scripts (attached) which can get list of all running CDCs for a factory and stop them as part of prescript and then later start them again as part of postscript.
PS: You would need to pass the stopped CDCs names from prescript to postscript as task output environment variables.
Hope this info help. Please let me know how it goes.