wish of those help psexec on first run asks to accept eula... you need to add /accepteula param... second thing is that you need to be in HOME network, not PUBLIC one... if network is set to PUBLIC, RPC is not available.
Running a HTA file remotely using PSTools
By : Erez
Date : March 29 2020, 07:55 AM
With these it helps It's because the account running the command cannot interact with the session of the remote user. Use the -s switch to run the HTA using the system account of the remote computer.