AFAIK, you dont need to script to do any of these,
Once SEPM is installed, use this to mirgrate clients.
How to deploy/update communication settings from your SEPM to your SEP clients machines with SEP 12.1 RU2
http://www.symantec.com/business/support/index?page=content&id=TECH199124
to know which clients do not have SEP installed you can use unmanged detector
What does it mean to set a client as an Unmanaged Detector?
http://www.symantec.com/business/support/index?page=content&id=TECH105722