local script = [[
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-RestMethod https://raw.githubusercontent.com/MyAcc/MyBranch/main/blabla.lua -Method Get -Headers @{"Authorization" = "Bearer XXXXXXXXXXXXXXXXXXXXXX"}
]]
local pipe = io.popen("powershell -command -","w"):write(script)
local result = pipe:read('*all')
pipe:close()
print(result)
When i run this code it show the raw file from github but the print(result) return as nil why is that ?
This is the error i got and the nil value afterward