add the possibility to set the button to 'disabled' state. See here for ref -> https://www.w3schools.com/tags/att_button_disabled.asp Set-pshtmltag might need to be adapted as well to make this work