Has anyone installed a Rapido Railcrew Switch Machine on Foam?

My layout is 5/8 inch plywood with 2 inches of foam on top. Has anyone installed these switch machines in the foam? I am thinking of cutting a square of styrene and mounting the switch machine in it and embedding it into the foam.

Any tips would be appreciated.

Jeff White

Alma, IL

(Removed)