Moving scan networks to shell script