Exception setting "SaveAs2": Cannot convert the "C:\out\Document.docx" value of type "psobject" to type "Object"
What causes it and how to fix it:
- PowerShell 7 [ref] arguments break Office COM callsSaveAs2([ref]$x) dies on "psobject to Object"; pass values directlyCause and fix →