So, I am trying to run:
$Path = "C:\Test & Test\Hello.txt" $NewName = "Goobye.txt" Rename-Item $Path -NewName $NewName
Which gives me an “illegal characters in path”
Is there any way I can make this variable escape the & or let is accept this, which im guessing is causing the problem?
This is inside a foreach loop, so it must be in a var!