I have been provided with a Lua script e.g. example.lua which I can call from the redis-cli in this way (Linux environment):
example.lua
redis-cli
redis-c