Is there a script for downloading videos from YouTube utilising only Wget or curl on iPhone?
No, there is not, because YouTube is desperate to prevent people from downloading their videos, and if it was that easy, too many people would do it.

youtube-dl has to be regularly updated to deal with the changes that YouTube and other sites implement to keep people from downloading videos.