The Filename property returns the filename of the root APG script.
VBScript:
JScript:
Equivalent to Script.Filename.
APGScript Object