title: New-SMBShare not working when path is a variable
body: <p>Following is working:</p>
  
  <pre><code>$ New-SMBShare  -name "xyz$" -Path "C:\TEMP\smbshare4" -FullAccess "NT AUTHORITY\Authenticated Users"
  </code></pre>
  
  <p>But not this one where I pass <code>-path</code> as a variable <code>$dirPath="C:\TEMP\\smbshare4"</code></p>
  
  <pre><code>$ New-SMBShare  -name "xyz$" -Path  $dirPath  -FullAccess "NT AUTHORITY\Authenticated Users"
  
  New-SMBShare : The filename, directory name, or volume label syntax is incorrect.
  At line:1 char:1
  + New-SMBShare  -name "xyz$" -Path  $dirPath  -FullAccess "NT AUTHORITY\Authentica ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo          : NotSpecified (MSFT_SMBShare:ROOT/Microsoft/Windows/SMB/MSFT_SMBShare) [New-SmbShare], CimException
  + FullyQualifiedErrorId : Windows System Error 123,New-SmbShare
  </code></pre>