If you are running an m-script, you can't put your functions in it. You must save each function to a .m file (named for the function name). Then your script will call them.
If you want to be neat and have all your functions listed in your script file, you'll have to make your script file one...