In my current pipeline I need to git pull other repository than the current one, but when I try to execute the git pull (either with powershell or cmd) it just gets blocked and never moves on. 

If I try the commands where the agent is running they are executed correctly.

This is my powershell script:

```
Write-Host (Get-Location)

Set-Location -Path xxx

Write-Host (Get-Location)

#Update the repository, with no prints

Write-Host "Updating"
Invoke-Expression "& git pull origin develop --verbose" 

Write-Host "Updated"

exit 0

```

When I run this, I get the "Updating" but then it just blocks there and nothing happens.

Can anyone point me the right direction to do this?