Forked from MrR3b00t's script, this is just my minor edit to allow reading the IP address from a command line argument. Handy if you have a few servers to check.
Also tweaked the text output layout to suit me a little more :)
Usage: ./CitrixScanner.ps1