What is the path it showed?

You should always have your strings quoted, so that is not the issue here.
Just to rule out variable parsing, use this format:
$path = '\\server\share$$\folder'
_________________________
!

download KiXnet