Use midi track to control transport

Hi guys,

I would like to use a midi track to control some of the function in the transport panel. I have searched the internet for a solution but I couldn’t find any (Maybe because it is not possible?). I have found how to use a midi keyboard to control the transport panel, but I want to create a midi track in cubase en trigger buttons from the transport panel with this midi track. Is this even possible?

I am creating a backingtrack to use live with my band and it would be nice if I could stop playback after the song is finished automatically, or to activate the metronome when I want to.

Thanks in advance