Changes the network category of a connection profile
Set-NetConnectionProfile -CimSession $s -InterfaceAlias 'Ethernet0' -NetworkCategory Private
$s
NetConnection