AddFunction Method
Adds a custom function.
Object Oriented Interface
public function doAddFunction($name);
Procedural Interface
inscript_powershell_do_addfunction($res, $name);
Remarks
This method adds a custom function. Custom functions must be added before calling Eval or EvalFile. During execution the Function event will fire, providing an opportunity to calculate and supply a return value.