Sure, just do the following (requires ssh access is setup in your router administration page, I added my key so that I can auto login):
Launch Siri Shortcuts
Add new shortcut
Add Action "Run Script over SSH"
Fill in your info for your host ip, etc and for the input you can enter a command like...