The highbeam passing switch will not work on many bikes. This is due to the contacts inside the switch melting.
So do not hold down the high beam passing switch for a long time!
You could try to get it going again by spraying WD40 into the switch assembly
Mine would work when it was wet then not when it was dry. They pulled the old switch apart and it was all full of corrosion. New one is full of dielectric grease now.