Build same code multiple Times

Hello,

I’m trying to figure out BuildSteps. I want to build the same code a couple of times just with a different bundle identifier.

I already figured out how to change AppNames and Bundleidentifier with “PropertyValue”. But I am kinda stuck on how to Build the app afterwards

So my simple goal would be something like this:

PropertyValue("App.Application Identifier") = "com.xxx.xxx1"
DoCommand("BuildApp")
DoShellCommand(MoveAppToLocation1)
PropertyValue("App.Application Identifier") = "com.xxx.xxx2"
DoCommand("BuildApp")
DoShellCommand(MoveAppToLocation2)
PropertyValue("App.Application Identifier") = "com.xxx.xxx3"
DoCommand("BuildApp")
DoShellCommand(MoveAppToLocation3)

Does anyone have an Idea how to archive this or what would be the correct starting point?
TIA

Kind regards
Christian

The BuildApp command should do it:

https://documentation.xojo.com/topics/build_automation/ide_scripting/building_commands.html