in reply to Finding dependancies of a script

You should probably take a look at the following items...