MATLAB: Running a Unit Test for a script

unit test

Is there a way to run a unit test with a MATLAB script file testing certain variable values? I know a unit test can be used in functions, but I need a way to use it with basic script files as well.
Related Question