New-Item -Type Directory -Path "C:\HWID" -Force Set-Location -Path "C:\HWID" Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted -Force Install-Script -Name Get-WindowsAutoPilotInfo -Force Get-WindowsAutoPilotInfo.ps1 -OutputFile AutoPilotHWID.csv