I have a bump starter I keep in my boat that I have used for just such an occasion, although usually it’s for other boaters since I keep the spare parts for mine onboard. However what you can do is jump 12v + to the blue (up) or green (down) to get by. My solution requires the culprit to be a bad relay or solenoid (which you should just keep a spare or two onboard anyways), if the trim motor is shot then disconnecting the rams and a ratchet strap is the only option.