Run an automated PowerShell, JavaScript, or Python script
Create automated scripts that you can run on multiple devices without user interaction.
Results:
When you reference a file from the script, you only have to enter its name. Once the step ends, the file is deleted from the remote computer, unless it is copied somewhere else with the script.
You upload 'a.txt' file for the job and you would like to copy it into a folder (also known as file distribution). Your script should look something like this:
Copy-Item a.txt C:\Destination