Hi, I've created this simple Powershell script to be used on a new Application template:
#Initialize variables and set them to null
[int]$StatisticValue = $null
Write-Output "Message.info: Numero di sessioni TCPIP totali attive sul sistema"
$StatisticValue = (Get-NetTCPConnection).count
Write-Output "Statistic.info: $StatisticValue"
on web page the value returned is this:

and also the chart shows something similar:

BUT on the server in the Powershell window:

Really, I'm not understanding why is this happening, the values should be the SAME.
Thanks, best regards.