curl https://i.jpillora.com/my-repo/my-windows-tool | powershell -
I don't have a windows machine so can't implement this, however, I'd guess this would be possible by detecting the windows "curl" (https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-7.3) user agent
curl https://i.jpillora.com/my-repo/my-windows-tool | powershell -I don't have a windows machine so can't implement this, however, I'd guess this would be possible by detecting the windows "curl" (https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-7.3) user agent