I would double check if the profile works is try a command from Console or Inventory Manager with a ping there. If it fails from there, then it's definitely something with the profile missing CLI creds.

Also are you defining the login within the script or relying on Netsight's login? Could we see the script?