well it is obvious, that they can simply bring someone else, give them my script with every line is commented so they can do what ever to it, own it, reap the benefis…etc. can they do that?
Unless specified in your contract with them, THEY own the code, not you - so yes, they can do whatever they want with it.