Hi there,
Not sure about Powershell but you can achieve this by the Git Credential Manager. Be sure you have the Git Credential Manager or have configured SSH authentication before you continue. You'll need a clone URL to tell Git what repository you want to clone to your computer.
Use this clone URL with git clone to make a local copy of the repo:
git clone https://dev.azure.com/fabrikam/DefaultCollection/_git/Fabrikam
git clone clones the repository from the URL in a folder under the current one. You can specify a folder name after the URL to create the repo in a specific location, for example:
git clone https://dev.azure.com/fabrikam/DefaultCollection/_git/Fabrikam C:\Repos\FabrikamFiber
Here are some links to dig more info regarding this
https://learn.microsoft.com/en-us/azure/devops/repos/git/clone?view=azure-devops&tabs=command-line
-----------------------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept it as an answer--