I have written a CA Endevor post-ship script and it is not working corretly.