Please see https://myworldofit.net/?p=10926 for the setup guide.
Using PowerShell and the XML API of a PAN NGFW backup the candidate and running configuration