After you sstate/compile the stand-alone sstate m-file function, type help FNAME to get help on running the file, where FNAME is the name of the file created.
sstate/compile
help FNAME
FNAME