Latest firmware push on main runs button.scr (if present) when the button is pressed. Use the same format as script files: commands are injected in the terminal, lines starting with # are printed as comment.
# Toggle power
w
W 3.3 100
So for your use case this might work. w disables PSU, W 3.3 100 enables PSU with 3.3volts @ 100ma. It would also serve to reset after the fuse blows. Note: the commands need to be two lines, the ; operator doesn’t work in scripts at the moment.
I really like it! I use it to jump to bootloader during development, saves me a key stroke. There were a couple previous attempts that I was really unhappy with, letting it marinate a bit led to a much better solution. Thank you for your input.