Abaqus - 2022 Python execution

Hello, I'm trying to run a Python script, originally developed in v2016, which extracts stresses from an odb file along a specified list of nodelines. It is executed like 'abaqus python myscript.py ODB=myodb.odb NFILE=nodeline.nod'. This works fine up to abaqus2020 but fails in Abaqus 2022, with the error message suggesting it is not accepting the command line arguments. I tried running 'abaqus python upgradeScript' but this did not come up with any changes. Does anyone know if there are any differences in the command line syntax in this version, e.g. it doesn't like the '='? I can't see anything in the manual to suggest this has changed.