Here's my test REPLACE line with only the variable in the replacement {REPLACE "M106 S89 P2" "[fan2_speed_percentage]"} and here is the result, its interpreted as literal text, (never the variable value). The layer comment included just for context. ; layer 20, Z = 6.0600 [fan2_s...