How can i execute JavaScript’s with nodriver python?

I’m trying to make a code with python but I’m having some problems; for example, I log in to the cloudflare protected site using nodriver and I can print the values of the elements on the page. but my goal is to change them or execute javascript code from the console (it can be one of the 2, it doesn’t matter)

Note: if there’s any other way to bypassing cloudflare (I’ve already tried undetected-chromedriver but it’s not able to bypass) and executing console scripts / changing values ?

this one is for executing script (i thought chatgpt might know)

import keyboard
import asyncio
import nodriver as uc
from time import sleep


url = "https://example.com/"

async def main():
    # Nodriver ile sayfa aƧ
    driver = await uc.start()
    
    tab = await driver.get(url)
    while True:
        if keyboard.is_pressed('g'):
            script = """
            document.title = 'New Topic';
            """
            driver.execute_script(script) 
asyncio.run(main())