Replacing an old 2 speed rotary cam switch with VFD
You need an electrician  to install and verify this will work.

32A/660V 12 Terminals latching (1-0-2) 

https://www.ebay.com/itm/1PCS-Rotary-Cam-Changeover-Switch-32A-660V-12-Terminals-latching-1-0-2-plastic/263563577888?hash=item3d5d9d0a20:g:i44AAOSw-btasw6X



My guess is this is what you have.


But how do you know the motor is still good?