You may find my following web pages with "pretty" pictures helpful. I prefer to use my access bridges as switches where possible.
Runner and Guest Access Bridges
Access Bridges used as Switches
Bridges Wired to Control Track Power with Relays for Engine Protection
https://slsprr.net/features/wiringIntermbrgRly.htm
See Access Bridges used as Switches where Swing Bridge on South End is shown.
The white, black, and purple wires on the left are secured under the bridge. They slide
into fascia holes when bridge is opened.