temporarily disabling a printer

I have a printer that only works from the office and not from home. The driver start searching at startup and shows a lot of pop-ups trying to connect. The driver is a custom HP printer driver from the office provider.

Is there any way to disable a printer driver temporarily via bash script or similar? I'm using MacOS Catalina on a Macbook Pro 2020.

thanks


As per your comment, I am writing a solution for you that might be helpful.

Temporarily Disable Startup Apps

Enter your login information as you normally would, but hold down the Shift key on the keyboard before submitting your credentials. Hold down Shift until the Dock appears, and the startup apps won't load this time.

This is how it works on a password-protected Mac if you don't have proper priviledge on machine to hide/remove the login items.