====== Handy Windows Commands ====== ====== Install Edge Browser ====== md -Path $env:temp\edgeinstall -erroraction SilentlyContinue | Out-Null $Download = join-path $env:temp\edgeinstall MicrosoftEdgeEnterpriseX64.msi Invoke-WebRequest 'https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/a2662b5b-97d0-4312-8946-598355851b3b/MicrosoftEdgeEnterpriseX64.msi' -OutFile $Download Start-Process "$Download" # alt: # Start-Process "$Download" -ArgumentList "/quiet" ====== Install VS Code ====== Save-Script install-vscode -path $env:TEMP $env:temp\install-vscode.ps1 === Alt === Install-Script -Name Install-VSCode ====== Install Notepad++ ====== $LocalTempDir = $env:TEMP $href = ((Invoke-WebRequest -Uri 'https://notepad-plus-plus.org/downloads/').Links | Where-Object { $_.innerText -match 'current version' }).href $downloadUrl = ((Invoke-WebRequest "https://notepad-plus-plus.org/$href").Links | Where-Object { $_.innerHTML -match 'installer' -and $_.href -match 'x64.exe' }).href Invoke-RestMethod $downloadUrl -OutFile "$LocalTempDir/np++.exe" start-process -FilePath "$LocalTempDir\np++.exe" -ArgumentList '/S' -Verb runas -Wait