Try to put the pathnames in quotes if they contian spaces, e.g.
code:
$path='"c:\program files\program\executable.exe"'

_________________________
There are two types of vessels, submarines and targets.