Enable PowerShell Remoting with Public Network using version 2.0

Enable-PSRemoting -SkipNetworkProfileCheck works with 3.0 … how do i do the same with 2.0

i found this as an alternative , any way to run it remotely ?

$networkListManager = [Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]"{DCB00C01-570F-4A9B-8D69-199FDBA5723B}"))
$connections = $networkListManager.GetNetworkConnections()

Set network location to Private for all networks

$connections | % {$_.GetNetwork().SetCategory(1)}
Thanks for any help : )

You can also use a GPO to enable PSRemoting: https://4sysops.com/archives/enable-powershell-remoting/#enabling-powershell-remoting-in-a-domain