Expected end of line but found identifier

Hello all! I am rewriting Applescripts which have been working for something like 15 years to move to a new Mac and newer applications. I use Filemaker and QuarkXpress. The existing script opens a file in Quark and exports it as a PDF (using an output style). I’m getting the aforementioned error when it reaches the export document 1 step. Any insight would be greatly appreciated.

tell application “FileMaker Pro Advanced”
tell database “NPS”
set quarkFile to the contents of field “fileToOpen” of the current record
set printList to the contents of field “PrintList” of the current record
set myfolder to “Mercury:printfiles:” & printList & “:” as string
set fileName to the contents of field “printFileName” of the current record
set filePath to myfolder & fileName & “.pdf” as string
end tell
end tell

tell application “QuarkXPress 2022”
activate
open file quarkFile do auto picture import yes
set suppress printing of picture box “Cover_A” of page 2 of document 1 to true
set suppress printing of picture box “Back_A” of page 1 of document 1 to true
end tell

tell application “QuarkXPress 2022”
export document 1 in filePath as “PDF” PDF output style “pdfStyleOne”
close document 1 saving no
end tell

tell application “FileMaker Pro Advanced”
activate
end tell

Sorry, I figured it out. In case it helps anyone else, the new command, is now pdfexport.