Does a relay with switchable output exist?

Does a relay as described above exist?

No. You have to make that function using more than one relay.

PWM is not a protocol it is a way of turning an output on and off rapidly, great for dimming LEDs and controlling motor speeds but useless for relays.