Silent Client Deployment on macOS via SSH

Does anyone know a way to silently deploy the client to macOS computers via SSH?

I would assume with any tool you could batch execute ssh you could probably also batch scp files.

Id think it’d go something like:

  1. Scp the Rocket.Chat+.app to /Applications/
  2. Run a command to mark as safe - google.com
  3. Profit