Thanks Andrew, that simplifies things a little. I've got some follow-up questions I hope you can answer.
On a clean install on macOS with an un-activated copy of PM:
Running checkLocalActivationValid exits 5
Running checkOnlineActivationValid exits 7
Can you confirm if those commands "exit 0" when PM is already activated?
Likewise, does deactivateOnline "exit 0" after a successful deactivation?
Thanks,
Kevin