ScriptName

From the Scripting Manual
Data Type: String Description: Name of the folder that the current script resides in; in the /script/ folder. Example: If your accessing ScriptName from code in /scripts/OmgWtf/Core.pas then ScriptName will be OmgWtf