Diagnose
Split the job: silent switch is electrical. A pump that runs and a top that stops is hydraulics or a limit switch.
Check
The roof module is voltage-snobbish. Many cars refuse to run the pump on a dying battery. Factory intent is engine running.