This is the overview of how google script works. This is how you use google script to download videos Click Link