How to run automation after closing rdp

The above advise is sound. Its against the licence terms to run an attended licence unattended.

Its also worth noting, UiPath 2021 is completely out of support so I strong suggest you upgrade.