copy file from one server to another powershell code example
Example 1: powershell copy file to remote server
scp filename hostname
Example 2: copy contents of multiple files to one file powershell
Get-ChildItem d:\scripts -include *.txt -rec | ForEach-Object {gc $_; ""} | out-file d:\scripts\test.txt