Gitlab ci adding ssh private key powershell commands

Hello everyone,

I m looking for the powershell equivalent of this code :

before_script:

- ‘which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )’

- eval $(ssh-agent -s)

- echo “$SSH_PRIVATE_KEY” | tr -d ‘\r’ | ssh-add -

- mkdir -p ~/.ssh

- chmod 700 ~/.ssh

or how to add the ssh private key in the .yml using powershell commands and thank you so much.