Windows PowerShell script equivalent to the settings