in reply to Creating Directories

Use single quotes and it will keep the \\ untouched:

$Dir_Name = 'd:\\path\\subdir';