'Is is possible to copy a powershell script file from the repo while running the release pipeline and keep it in TFS Azure devops?

I am trying to download a powershell script file from the Deploy Scripts repo and keep it in TFS Azure DevOps Release Pipeline, so that I can use it in my next step to generate another json file.

I am using Copy "Deploy-Scripts" as my first step, it will download the Deploy scripts from the Artifactory and keep it in the server C:\dev\ path. And from their I want to download the "Generate-manifest.ps1" file and keep it in the TFS, somewhere like "Secure files" or something. And for the next step I want to use the same powershell script file from the TFS path and generate a new file again in the TFS storage only. So is there a way to achieve all this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source