title: powershell writing data to COM port remove newline
body: <p>I need to send data to a COM port but with out the carriage return.
  This is what I have so far;</p>
  
  <pre><code>    $port = New-Object System.IO.Ports.SerialPort
      $port.PortName = "COM10"
      $port.BaudRate = 9600
      $port.Parity = "none"
      $port.DataBits = 8
      $port.StopBits = "None"
      $port.Handshake = "None"
      $port.Open()
      $data = $port.ReadExisting()
      if ($data)
      {
          $port.writeLine("OK")
          ...
          ...
      }
  </code></pre>
  
  <p>The problem I have is $port.writeLine("OK") buts a carriage return and I think a space before the OK.
  I have a device listening for the OK string put it never gets it. </p>
  
  <p>Is there any way to remove this? </p>
  
  <p>Thanks</p>