Add-Type -TypeDefinition @" using System; using System.Runtime.InteropServices; public class DisplayChanger { [DllImport("user32.dll", CharSet = CharSet.Auto)] public static extern int SystemParametersInfo(int uAction, int uParam, String pvParam, int fWinIni); const int SPI_SETDESKWALLPAPER = 20; const int SPIF_UPDATEINIFILE = 0x01; const int SPIF_SENDWININICHANGE = 0x02; public static void SetPrimaryMonitor(String wallpaperPath) { SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, wallpaperPath, SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE); } } "@ DisplayChanger::SetPrimaryMonitor("C:\\path\\to\\your\\monitor\\arrangement\\settings.file")