How to add a map to a rule

I have a rule that is kinda working the problem is that i need to execute the map file but idk how i can do that i have tried in different ways but with no success. I have the file that is what makes the HU command work but cant make it work.

rule “test”
Item test1 changed to OFF
then {
createTimer(now.plusSeconds(5)) [

It isn’t totally clear, but do you mean you want to map the OFF to some String using a .map file? If so

test1.sendCommand(transform("MAP", "", "OFF"))