Solved
I have already located the syntat to set a test cases custom property:
testRunner.testCase.setPropertyValue( "foo", bar )
This writes to the property defined under the "Custom Properties" tab, but I want to write to a property defined in the test cases local "Properties" test step.
Is this supported?