Passing web form to powershell

hi all,

im going to design a simple tkinter/web form for people to enter there username/old password/new password in a text box and when they click the submit button i want to pass it to powershell Set-ADAccountPassword so it changes there passwords

how would i do this please