You can still use the whoami command to get the user name and domain, if you don't know what to type in there.
And yes, you would still need to set up the Power Automate machine runtime app and register it.
For unattended runs, you will need to purchase the Power Automate Process license and assign it to the environment.
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.