Serial port reader script in PowerShell