This functionality is very useful in scripts that operate across many machines to which you may not have SMB or share access. Copy the files via the PowerShell session instead!
$session = New-PSSession -ComputerName serverName
Copy-Item -Path source-file.txt -Destination c:\whatever\onthedestination -Session $session
Don’t forget to use Remove-PSSession $session
when you’re finished.