You could use a toggle switch you’d just have to turn it off after half a second to turn the pc on and then turn it on and off again for longer to turn off the pc with the power button if you don’t do it inside the software.
In your case you just have to touch it for a second assuming it’s only triggered and not toggled on if it’s toggled on, then you need to touch it again to turn it off. They make momentary touch switches. If you want to go that route I’d get one of those or return and get a regular momentary switch.
Ideally you need a momentary switch.
You could use a toggle switch you’d just have to turn it off after half a second to turn the pc on and then turn it on and off again for longer to turn off the pc with the power button if you don’t do it inside the software.
In your case you just have to touch it for a second assuming it’s only triggered and not toggled on if it’s toggled on, then you need to touch it again to turn it off. They make momentary touch switches. If you want to go that route I’d get one of those or return and get a regular momentary switch.