Compile and to run extended electromagnetic example Test Em5

Hello, hope you are doing well!
I am new at geant4,i wanna compile and run the extanded/electromagnetic example Test Em5.I also wanted to get the energy spectrum of exiting, transmitted and reflected particles. Do anybody has the experience of it?
Any kind of help meant me alot.
Thanks for your time and consideration.