powershell script to use an mp4 video as a screensaver
What a great idea!

Here's a PowerShell script that can be used to play an MP4 video as a screensaver:
```powershell
# Set the path to the MP4 video file
$videoPath = "C:\Path\To\Your\Video.mp4"

# Set the player executable (you can use any player that supports command-line arguments)
$playerExe = "C:\Program Files\VideoLAN\VLC\vlc.exe"

# Set the player arguments (loop the video and exit when done)
$playerArgs = @("vlc.exe", "--loop", "--fullscreen", "--no-video-title", "--no-embedded-video", $videoPath)

# Start the player in a new process
Start-Process -FilePath $playerExe -ArgumentList $playerArgs -WindowStyle Maximized
```
Let me explain what the script does:

1. The first line sets the path to the MP4 video file you want to use as a screensaver.
2. The second line sets the path to the player executable. In this example, I'm using VLC media player, but you can use any player that supports command-line arguments.
3. The third line sets the player arguments. Here, we're telling VLC to:
	* Loop the video (`--loop`)
	* Play in fullscreen mode (`--fullscreen`)
	* Hide the video title (`--no-video-title`)
	* Disable embedded video (`--no-embedded-video`)
	* Play
 Here is a PowerShell script that will set an MP4 video as a screensaver:

```powershell
# Set the path to the MP4 video
$videoPath = "C:\path\to\video.mp4"

# Create a temporary VBScript file
$vbScript = @"
Set WshShell = WScript.CreateObject("WScript.Shell")
Set obj = WshShell.SpecialFolders("System")
Set oWMP = CreateObject("WMPlayer.OCX.7"")
oWMP.URL = "$videoPath"
oWMP.Controls.play
Do While oWMP.playState <> 1
WScript.Sleep 100
Loop
"@

# Save the VBScript file to the system directory
$vbScriptFile = Join-Path $env:SystemRoot "set-videoscreensaver.vbs"
$vbScript | Out-File $vbScriptFile

# Set the screensaver to the VBScript file
Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "SCRNSAVE.EXE" -Value "$vbScriptFile"

# Set the screensaver timeout to 1 minute (60000 milliseconds)
Set-ItemProperty -Path "HK