parametrized StoreExecutedScript method to prevent localization issues