Add double quotes to variable to escape space
<p>I am running a script which has $FileName variable containing the absolute path with spaces. Due to the space within the directory name and file name, the script fails to executes without finding the actual path. All I need is to add $FilePath within double quotes. How should I append double quotes in the beginning and end of a string?</p>

<p>For example</p>

<pre><code>"X:\Movies\File One\File One.txt"
</code></pre>

<p>Script:</p>

<pre><code>$FilePath = Join-Path $Path $($Dir + "\" + $File + “.txt”)
$FilePath
</code></pre>

<p>Current OutPut:</p>

<pre><code>X:\Movies\File One\File One.txt
</code></pre>