PowerShell > Word > PDF

Your code works fine for me on what I think is the latest version of Office (it’s O365 so should be updating automatically). It does save as a DOCX rather than PDF though?

Someone in a previous thread was using wkHTMLtoPDF to convert HTML to PDF directly, and it seems to work well. If you don’t need the intermediate .DOCX file, that might be an option for you.