Here is just a quick example of how to get the location of the currently running script.
More information about formatting options