Hye, in case anyone still facing the same issue, you can try to run "copy running-config startup config" in the targeted router after setting basic configuration. I dont have the explanation how it works but somehow if i did ran the command after initial configuration, script pushed from outside will be successful.