Script for mass image rotation vertically

Python
Job 3 of 4
Task:
In a certain directory, there are thousands of photos in JPEG format.
It is necessary to automatically rotate all images vertically.
The original images should not be deleted or modified.
This should be an executable file for the Windows operating system.

Solution:
Python script for automatic conversion of photos with saving to another directory.
Compiling the Python script into an executable EXE file.