Welcome to the Airtable community!
Is your button in an interface?
Automations cannot prompt a user for input. You can create a new field for the user to enter values that the automation uses for its input.
If you can run the script from scripting extension (not an automation or interface) then your script can get user input using input.textAsync()
or one of the other input methods available in scripting extension. It is documented here.