Well, a switch is a switch and a wire is a wire...as long as both are rated high enough to handle the current. You are also adding ..Length...which may necessitate a larger wire than what is presently used for that function.
If you can find the amp-draw of the tilt trim motor, that would allow you to calculate the exact wire and switch size that you need.
Absent that, you could measure the size of the present wire that drives the tilt motor, and go at least one size larger to accommodate the extra length.
Perhaps someone with real data will pipe in to help. Sorry.
https://www.engineeringtoolbox.com/amps-wire-gauge-d_730.html