Here's a more eloquent way of doing ... making fewer assumptions ...

Code:

Break On

$FOLDER = ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Personal")

If Exist($FOLDER)

$FOLDER = $FOLDER + "\XXX_Restricted"

If Not Exist($FOLDER)

MD $FOLDER

; use SHELL() to call cipher on $FOLDER ...

Endif

Endif

Exit 0