Hi @Subrahmanyam Chilakamarthi
you didn't tell us a lot about your scenario ;-)
What are the steps performed a.) within your pipeline and b.) within your script, so the answer just might be a "general" one.
Just on cmd.exe and error 1601... maybe your script installs some kind of service/dll/application before the error, that needs to have a reboot (eg changing system runtimes or DLLs)
1601 mains (in the majority of cases) that you have to installaer is unavailable due to a required reboot... maybe try to reboot the system before applying this step!