param ( [string]$Port = "COM5" ) Write-Host "Flashing firmware to device on $Port..." -ForegroundColor Cyan & "C:\Users\micha\AppData\Local\Microsoft\WinGet\Packages\Espressif.EIM-CLI_Microsoft.Winget.Source_8wekyb3d8bbwe\eim.exe" run "idf.py -p $Port flash"