def build_script(self) -> str:
        """
        Finishes and returns the full code.
        """
        self.build_script_body(self.name, self.sub_items)
        self.commands.append("return menuitem0,")
        full_code = CodeBuilder(
            self.name,
            self.commands,
            self.script_dirs,
            self.funcs,
            self.imports,
            self.type,
        ).compile()

        return full_code

        Finishes and returns the full code.
        
context_menu/linux_menus.py