Logon to remote servers using powershell script

Experts!

Is there any way to login to remote machines using powershell script earlier i tried with rdp automation but stuck with legal notice banner, my ultimate goal for login remote server using powershell is to make my entry in the server and it should reflect in available when checking reports for last logon users in server, i tried with establishing pssession but it doesn't show my entry.

Any ideas really helpful!! Thanks in advance