Runs scripts or programs in a directory