It's a push button switch. Two wires and just one tiny part. Good way to begin your career in PC repairs.
I have an old TINY computer with power button on front (it illuminates when on)
I am fairly sure the problem is with switch but how easy is it to remove front cover and replace switch ?
Happy to send photo if that helps ?