After reading the comment of mklement, I created the following working code:
powershell -Command ^
$COMPORT=(Get-WmiObject Win32_SerialPort ^| Select-Object Name, DeviceID ^| ^
Where-Object { $_.Name -like 'USB Serial Device*' } ^| Select-Object -ExpandProperty DeviceID); ^
Write-Host \"Using COM port:[$COMPORT]\"; Start-Process -Wait -FilePath putty -ArgumentList ^
\"-serial $COMPORT -sercfg 9600,8,n,1,N\""