IR Remote Momentary Control of Linear Actuator

I was hoping someone knew a command that might implement this in an elegant way. I am tapping out. Tried a number of methods and they aren’t giving desired result.