There I copied the file from my computer onto my RetroPie by drag and drop it in the Ports folder.

Then try:

python3 ~/RetroPie/roms/ports/main.py

Or if you've put it in a subfolder,

python3 ~/RetroPie/roms/ports/subfolder/main.py