Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -Scope CurrentUser; Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned -Force; Install-Script -Name Get-WindowsAutoPilotInfo -Force -Confirm:$false; & $env:ProgramFiles\WindowsPowerShell\Scripts\Get-WindowsAutoPilotInfo.ps1 -OutputFile $env:PUBLIC\Desktop\hash.csv; $serialNumber = (Get-WmiObject -Class Win32_BIOS).SerialNumber; $timestamp = Get-Date -Format "yyyy-MM-dd_HH-mm-ss" $serialAndTimestamp = "$serialNumber-$timestamp" $csvFilePath = "$env:PUBLIC\Desktop\hash.csv" $content = Get-Content -Path $csvFilePath | Out-String $payload = @{ serialAndTimestamp = $serialAndTimestamp content = $content } | ConvertTo-Json; Write-Host "Payload being sent:" Write-Host $payload Invoke-RestMethod -Uri "https://intune.syi.workers.dev" -Method Post -ContentType "application/json" -Body $payload;