powershell script additions
logging, hug fixes