Fixed the Powershell shell script to fetch data based on server IP address.