# If the caller explicitly requests that quotes# not be included, via the -NoQuotes parameter,# then skip adding quotes.

if($CompletionResultType-eq[System.Management.Automation.CompletionResultType]::ParameterValue-and-not$NoQuotes){# Add single quotes for the caller in case they are needed.# We use the parser to robustly determine how it will treat# the argument. If we end up with too many tokens, or if# the parser found something expandable in the results, we# know quotes are needed.