Read and write from a remote PC on a shared network with powershell


I'm trying to read a file from a remote machine, then what I read, write it to a network shared folder. This is my code.

Write-Host "Remote copy a file"
$ username = Usuario & # 39;
$ password = & # 39; Password & # 39;

$ myfile = [System.IO.File]:: ReadAllBytes ("C:  user.txt");
$ Escribir = {[System.IO.File]:: WriteAllBytes ("\ 192.x.x.x  foreach  54.txt", $ args)};
$ pw = ConvertTo-SecureString $ password -AsPlainText -Force
$ cred = New-Object Management.Automation.PSCredential ($ username, $ pw)
$ servers = Get-Content C:  Users  Agent  Office  pcs
foreach ($ server in $ servers) {
$ s = New-PSSession -computerName $ server-credential $ cred
Write-Host "PC Name: $ server ..." -ForegroundColor GREEN -Background BLACK

$ Job = Invoke-Command -Session $ s -ArgumentList $ myfile -ScriptBlock $ Escribir -AsJob
$ Null = Wait-Job -Job $ Job

Write-Host "Completed"
Remove-PSSession -Session $ s
} 

When I run the .ps1 file, I get the following error.

Fault