python – How to wait until an operation ends in C #

I have a C # code in which a Python code in which it is executed through CMD codes in C #. When the Python code is executed, the operations are complete, a JSON file is created, and it will be opened in C #. In this situation, how can the C # code wait to check whether the Python output (data.json) is created or not, and just when the output is created, the rest of the C # code can be executed.

cordially