Yes you can:
jscript code:
function myFunc /* Function's name */ (Argument /* I believe no. of arguments is unlimited. Can be anything */ ) {
Debug.Trace("Hello World!");
Debug.Trace(" The argument was: " + Argument);
}
function OnEvent_Initialize(bMgStart) {
myFunc("HI there!");
}
Now I can imagine you'd want to use the current user's email as file name right?