Generates a script name from a given string, ensuring uniqueness within a specified context.
The input string to generate the script name from.
The context (array or object) in which the generated name should be unique.
A string representing the generated script name.
Generates a script name from a given string, ensuring uniqueness within a specified context.