Hi Jacob,
Interesting question from a technical perspective. From a functional perspective, regardless if it will keep working or not, transfer the script to a dedicated account or to an owner in the organisation that will be there after you leave.
We see lots of orphaned scripts/documents in organisations and it is important that the ownership of a script is clear. Best scenario, find an owner transfer ownership, and document your script.
I will take a look to the technical part, I assume the script will stop working once your account is deleted. IMHO it is more important to find an owner of the functionality and hand over the script.
Kind regards / Met vriendelijke groet,
Jasper Duizendstra