Enable 1Password's SSH Agent.
Using Powershell, install npiperelay via the scoop package manager.
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
irm get.scoop.sh | iex # install scoop
scoop install git
scoop bucket add extras
scoop install npiperelay # install npiperelay
Many thanks for this, the nix ssh is simply more efficient to use with its persistent connections.
The Bash part can be simplified/hardened: