Writing an import script for WordPress and the import works correctly from a browser window when logged into the same WordPress site. However executing the script from the