How to store an execute script in a variable

Your code have error and not working.

Write the command do you want because your command have not any function

document.querySelector(”#hptl > a:nth-child(1)").click()

What is this command ?

In Kantu show it’s a wrong code.