You replace the api key with the personal access token. That is correct.
Besides that, the error message is quite clear: the script has problems with the authentication - either against airtable or seatable. Please double check your input variables and try again.
If it does not work, I would create new keys and try again.