add an example to use custom function with MScript