Hi,
Please use following command to launch an interactive command prompt :
psexec \\computername
cmd
Note: computername is the remote PC computername.
I did the test. If I use
psexec \\computername
cmd command and then use
ipconfig/all command, I will get the remote PC ipconfig. Here is a screenshot.

I also try to use
psexec \\computername -u
username -p password cmd command with administrator and standard user, and get following screenshot. And it is same as the command without username and password.

So please just use
psexec \\computername cmd , then you could try to use the command that you want to
run on remote PC.
Here is a link about PsExec for your reference.
PsExec v2.2:
https://docs.microsoft.com/en-us/sysinternals/downloads/psexec
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact
tnmff@microsoft.com.