need workaround - ubuntu2004.exe(the WSL installer) fails to work under WinRM
After 'Add-AppxPackage -Path c:{wslImageUploadPath}\Ubuntu_2004.2020.424.0_x64.appx' installing this appx, it is required to run 'ubuntu2004.exe install --root' before wsl.exe or bash.exe can connect to the newly installed ubuntu system.
This command can be successfully run from a local or RDP session of the target Windows machine. But running it from Attune / EnterPSSession remote session through WinRM fails with the error "Program 'ubuntu2004.exe' failed to run: A specified logon session does not exist. It may already have been terminated."
It's an obstacle to implement a fully unattended install of WSL.