As someone who had this experience just a couple days ago, I can confirm that while Z-Metronome can pull exclusive moves like Darkest Lariat, it treats them the same as other moves under the Z-Metronome effect: the move's type is considered, and the respective Z-Move is used if it's a damage move. So in Darkest Lariat's case, your Pokemon uses Black Hole Eclipse, not Malicious Moonsault.
tl;dr: If the move Metronome pulls is a status move, it doesn't get a Z-Boost. If it's a damage move, it only gets the respective type's Z-Move, not any that are exclusive to a move-pokemon combination.