title: Powershell Add-Content
body: <p>I can't get add-content to add both a string and the output of a cmdlet so it would look something like this;</p>
  <pre><code>Add-content -path $logfile -value &quot;This is my text&quot;+(Get-Date)
  </code></pre>
  <p>I realise I can just add another line to set a variable to the result of get-date but and then pass the variable into my add-content command but I just wondered if I could do it in a single line, like a said Im being anal lol</p>
  <p>Cheers</p>
  <p>Andy</p>