$Path = "C:\Windows\Web\Wallpaper\Windows\img0.jpg"
[Windows.System.UserProfile.LockScreen, Windows.System.UserProfile, ContentType = WindowsRuntime] | Out-Null
$Stream = [Windows.Storage.StorageFile]::GetFileFromPathAsync($Path)
while ($Stream.Status -eq 'Started') { Start-Sleep -m 100 }
[Windows.System.UserProfile.LockScreen]::SetImageFileAsync($Stream.GetResults())