I achieve this with the onedrive file connector.
Create directories in your onedrive root.
'root/,run/results/'
and use a file watcher to monitor file creation in 'root/.run'
than use the onedrive connector to create a new file with contents:
"python script.py > /results/script.txt"
Than create a onedrive trigger as another flow to watch the results folder or whatever you want to do with it.