How to run cmd that requires sudo in async job

Hi,

I am using a secret command that retrieves my api keys from 1password cli and it requires sudo to authenticate me.

Is there a way to prompt a user for the password when the command is running inside a plenary.job?

Maybe there is a better path to take for calling my secret command than what I am trying to achieve with an async job?