When i type it manuelly with "", then it works.

But when I assign the path to a variable, then it won't accept it with "" - regardless if the path includes spaces or not.

Example:
$from = 'C:\TEMP\DOK.PDF'
$to = '"\\filsrv\archive folder\dok 23170 PETERSEN.PDF"'

copy $from $to (don't work)

copy $from "\\filsrv\archive folder\dok 23170 PETERSEN.PDF" (works fine)