Welcome to the forum! Scripts for use with the new rule engine should be placed in $OPENHAB_CONF/automation/jsr223. The automation and jsr223 directories need to be created. Rule files for use with the legacy rules DSL should be placed in $OPENHAB_CONF/rules.
Your posts will look much more readable if you use code fences around logs and code. See #12…
Your rule is not logging anything. Try this…
rule "Test rule"
when
Item zwave_device_84feb206_node23_switch_binary changed
then
logInfo("Test rule", "zwave_device_84feb206_node23_switch_binary changed to {}", zwave_device_84feb206_node23_switch_binary.state)
end