Hey guys I'm writing a quick script, just before it enters the if block, I need to make sure the user is in the Documents folder.
if ($pwd -not $DocumentsPath)
thats the condition I used but I keep getting an error that states:
Unexpected token '-not' in expression or statement. At line:12 char:14
Unexpected token 'DocumentsPath' in expression or statement. At line:12 char:19