How to automatically run commands after SSH and SUDO not working?

I'm working on a script to SSH and SUDO as (sap user sidadm) then automatically run commands that the sidadm user can run such as R3trans -v , tp , etc..

I can SSH without password and SUDO..
but the commands don't run after I SSH and SUDO to the sidadm user...here is the commands that I've tried from the command line:

  1. ssh sapsystem sudo -u sidadm "command1;command2"

  2. ssh sapsystem sudo -u sidadm command

  3. ssh sapsystem sudo -u sidadm 'command'

All have logged me in and sudo'ed, but
but the commands aren't automatically running

Prompt:
sapsystem>

Please assist? What am I missing?
I've even tried bash -c too.,

Try

ssh sapsystem 'sudo -u sidadm command'

Thank you!

That helped, but what sealed the deal was that I had to add the path to the commands

and I added sudo -v ...

ssh system 'sudo -v /path/command;command2'

Worked like a charm!! Thanks for your contribution.

Now if I can do it without adding the path that would be even better....