I want to make a button in power apps run a script that is written in python in my vscode. the script logs a ticket in my ticket management system, How can I do this?

I want to make a button in power apps run a script that is written in python in my vscode. the script logs a ticket in my ticket management system, How can I do this?