# This script closes Content Player and then restarts it. # Minimize PowerShell $sig = '[DllImport("user32.dll")] public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);' Add-Type -MemberDefinition $sig -name NativeMethods -namespace Win32 $PSId = @(Get-Process "powershell" -ErrorAction SilentlyContinue)[0].MainWindowHandle [Win32.NativeMethods]::ShowWindowAsync($PSId, 2) #Close Content Player Stop-Process -processname Signage start-sleep 3 #Open Content Player Start-Process -FilePath "C:\Program Files\Four Winds Interactive\Content Player\Signage.exe"