How to switch user in linux

I used below commnad
new-sshsession -computer server -credential user
And invoke-sshcommand -idsseion 0 -commmand

I tried to search if there is a switch user to log in but cant find.

Because the only user are capable to run the command on the server.

On normal connection.

I used ssh user@ip then, after i supply my password and otp is sending sms notification once i authenticate to the server i type in the appuser to use the command.

How can i switch for my account to switch appuser account? I tend to use powershell script.