Windows ファイアウォールの設定をPowerShell経由でやる
管理者で実行
code:pwsh
Get-NetConnectionProfile # 目的のネット接続プロファイルを探す
$p = Get-NetConnectionProfile -InterfaceIndex n
$p.NetworkCategory = "Private"
Set-NetConnectionProfile -InputObject $p
#Windows