Powershell and minor improvements