Added cleanup to PS script for production config