$AvailableIpAddresses = Get-NetIPAddress | Where-Object -FilterScript { $_.IPAddress -Match "10.189" } $FoundIp = $AvailableIpAddresses.IPAddress Write-Host "Your WFH IP is $FoundIp. Arg '-ragAddr=$FoundIp'"