Trying to run a python script or .exe at runtime UE5/4.27

Hi pls accept my apologies if this has ever been answered or is not possible but I have only just started looking at python scripting the editor and understand that scripts cannot execute during runtime, however i have converted one of my scripts to .exe and this runs fine , the script creates a simple .csv file from some online data and terminates.

However during runtime ( i use Rana victory plugin that allows you to execute a process at runtime) the .exe will run but will terminate before it crates the .csv file, it seems that unreal is stopping the exe from modifying folders or creating any files, as similar .exe files that download images or videos also run but fail to create files.

Any insight into this or alternatives methods for doing it would be much appreciated.

Many thanks