Randomly blocked port range on Windows

Without any app or service listening on it – it may be due to hns Host Networking Service – try restarting it to see if desired ports are available

Restart-Service -Name hns

or add your range to exclusion: https://dandini.wordpress.com/2019/07/15/administered-port-exclusions-blocking-high-ports/

Powershell .bashrc equivalent

Custom functions can be defined and loaded in every new session. To check where to save custom functions run:

if (!(Test-Path -Path $PROFILE )) { 
    [void](New-Item -Type File -Path $PROFILE -Force)
}
$PROFILE

If file does not exists it will be created.

Please note that this requires execution policy for powershell scripts.