I want to start a python script when a button is pressed

i have a fairly complex python script on my pc, which is processing speech to text and text to speech and does all sorts of other things to generate metahuman animations.

I want to run this script using the selected input variable as language. How can i run the python script with the variable “english” if the button english is pressed in my main menue scene. I do not have the option to include “execute python script” in my blueprint, since “Python execution nodes are only available in Editor-only Blueprint classe” (Scripting the Unreal Editor Using Python | Unreal Engine 5.0 Documentation)

Does anyone know a workaround?