Short answer - Impossible
The Bootable Installer can Only be performed on an Apple Computer
This will have to be performed from a Qualifying Computer to run the version of macOS to be made on the Bootable Installer.
Example : Bootable Installer of High Sierra would have to be done on a computer that Qualifies to run High Sierra
Notation: If the computer being used to perform this action is Too New ( M4 Apple Silicon ) or Too Old to qualify to run the version of macOS - this computer can’t be used.
Alternative is, to gain access to a Qualifying Apple Computer from a family member, friend or associate.
Friendly advise 😎
The Apple Support Community Forums are sometimes visited by AI / LMM / ChatBots.
AI / LLM are basically a Super Version of Predictive Text which is based upon a Data Set.
When that Data Set is based upon older data points, the outcome of the response will be equally out dated and / or unreliable
AI is also the newest form for Data Mining by Large Corporations.
Suggest being very careful about this.
Some suggestions can be incorrect, misinformed , incomplete, impossible to do as per evidenced elsewhere in this question.