Here is the final version: moveMesh4.py (1.8 KB)
I can see you have been looking for an export feature too.
The attached function prompts you to pick your .stl file, then takes a planar or solid mesh, moves it to the coordinate center point, and exports the .stl file with the same name as the imported one (overwrites it).
For any future topics: please define clearly on the very beginning what you would like your script to do.
Thank you.