so this works for 4.27
E:\Games\UE5\UE_4.27\Engine\Binaries\Win64\UE4Editor-Cmd.exe E:\Projects\ShooterGame\ShooterGame.uproject -run=IoStore -CreateGlobalContainer=E:\Projects\ShooterGame\Saved\StagedBuilds\WindowsNoEditor\ShooterGame\Content\Paks\global.utoc -CookedDirectory=E:\Projects\ShooterGame\Saved\Cooked\WindowsNoEditor -Commands="C:\Users\LongerWarrior\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Games+UE5+UE_4.27\IoStoreCommands.txt" -CookerOrder=E:\Projects\ShooterGame\Build\WindowsNoEditor\FileOpenOrder\CookerOpenOrder.log -TargetPlatform=WindowsNoEditor -stdout -UTF8Output
IoStoreCommands.txt
-Output=E:\Projects\ShooterGame\Saved\StagedBuilds\WindowsNoEditor\ShooterGame\Content\Paks\pakchunk0-WindowsNoEditor_P.utoc -ContainerName=pakchunk0-WindowsNoEditor_P -ResponseFile="C:\Users\LongerWarrior\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Games+UE5+UE_4.27\PakListIoStore_ShooterGame.txt"
and response file is the same as in later ue versions
"E:\Projects\ShooterGame\Saved\Cooked\WindowsNoEditor\ShooterGame\Content\Blueprints\Pickups\Pickup_AmmoGun.uasset" "../../../ShooterGame/Content/Blueprints/Pickups/Pickup_AmmoGun.uasset" -compress
extra things u need are : template project, CookerOrder file(could be empty) and BulkDataInfo.ubulkmanifest(doesn't matter, if u don't have ubulk files) also i think need to create empty pak file with the same name