Hi 60766043,
For example, to start postfix in WSL1, you can register the following command in Task Manager.
wsl -u root -- sudo postfix start
This is registered with the following command.
schtasks /create /tn postfix /sc onstart /delay 0000:30 /tr "wsl.exe -u root -- sudo postfix start"