While it is not common to need to call Windows functions within Python code, you may occasionally need to do so in order to make a program work correctly. If you need to, you can run the cmd.exe ...
Automating mundane tasks keeps your attention focused on the work that matters.
os.path.join (folder, filename) ensures the path is correct for the system. On Windows, it uses backslashes (reports\summary.txt); on Linux and macOS it uses forward slashes (reports/summary.txt).