title: How to output something in PowerShell
body: <p>I am running a PowerShell script from within a batch file. The script fetches a web page and checks whether the page's content is the string "OK".</p>
  
  <p>The PowerShell script returns an error level to the batch script.</p>
  
  <p>The batch script is executed by <a href="http://www.scriptftp.com" rel="noreferrer">ScriptFTP</a>, an FTP automation program. If an error occurs, I can have ScriptFTP send the full console output to the administrator via E-Mail.</p>
  
  <p>In the PowerShell script, I would like to output the return value from the web site if it is not "OK", so the error message gets included in the console output, and thus in the status mail.</p>
  
  <p>I am new to PowerShell and not sure which output function to use for this. I can see three:</p>
  
  <ul>
  <li>Write-Host</li>
  <li>Write-Output</li>
  <li>Write-Error</li>
  </ul>
  
  <p>What would be the right thing to use to write to the Windows equivalent of <code>stdout</code>?</p>