How do I open a elevated command prompt using command lines on a normal cmd?
For example, I use runas /username:admin cmd but the cmd that was opened do
runas /username:admin cmd
There are several ways to open an elevated cmd, but only your method works from the standard command prompt. You just need to put user not username:
user
username
runas /user:machinename\adminuser cmd
See relevant help from Microsoft community.