powershell Useful PowerShell scripts updating installing writing log in file the $PathToFile should be changed to actual file location