executeOSCommand is not for remote executions as it doesn’t support remote login.
Though I won’t recommend using IS this way, I do understand that sometimes you make do with what you have.
Try this out in a sandbox or lower environment (link).
Note the disclaimer.
KM