I do that in my electric
I do that in my electric kiln: place the piece of metal on top of the glass and do a total fusion. The metal will end inside the glass. Ajusting the temp. and the time will vary the deep of the metal in the glass.
I don’t know about microwave; but as many microwave accept metal, I guess it should be possible to get similar.