$destinationFolder = "C:\My Stuff\Subdir" if (!(Test-Path -path $destinationFolder)) {New-Item $destinationFolder -Type Directory} Copy-Item "\\server1\Upgrade.exe" -Destination $destinationFolder