I am trying to write a python script that I can run outside of Pro that overwrites a map service on an ArcGIS Enterprise server. I have a python script that uses a mxd and can overwrite a map service that was published from ArcMap. How do I get this script to work using a Pro project instead of a mxd? I've changed the script to point to my aprx file. When I try to run the script from a command prompt, I get a 'Product License has not been initialized' error message.