Inject a log variable into executed scripts