Suppress all pop-up messages when opening a file

Hello Everyone!
The title says it all.

Is there a way to suppress every window message when opening a file from cmd?
Specifically, the problem arises when the customer sends us a file with missing linked blocks.
My script runs without user interaction on a server machine…it starts after the file is opened, so I guess I can’t intercept it.
Is there a way to skip that message?
If anyone has any ideas, I’d be happy to find a solution.

Thanks!

Ok, I think I solved it this way:

rhino_cmd = (
f’“{rhino_path}” ’
f’/nosplash ’
f’/scheme=EasyPrework ’
f’/runscript=“_-Open “”{input_file}”" Enter ’
f’
-RunPythonScript “”{export_script}“” _Enter ’
f’_Exit _Enter"’
)