getScriptInfo function

Get information about the calling script