How we can use "pre-defined run as account" in scom powershell command start-scomtask

Hi Techie,

I want to know How we can use “pre-defined run as account” in scom powershell command start-scomtask.

In scom 2016 , when we are not using -taskcredential then it is taking pre-defined run as account by default.

But now I am using a con 2022, where if we don’t use -taskcredential parameter then it is asking for credentials by which scom task will run.

But how can we use predefined run as account in script.

We are running the task in console by choosing the predefined run as account option and same we want to use in script.