&& is notoriously hard to search for on Google Search, but the best I\'ve found is this article which says to use -and.
&&
-and
Unfortunatel
We can try this command instead of using && method:
try {hostname; if ($lastexitcode -eq 0) {ipconfig /all | findstr /i bios}} catch {echo err} finally {}