Build using UnrealBuildTool with the command line

I’m trying to build from the command line on a Mac as the Launch to device no longer works. (I’ve tried switch the required plugins on and off as well as deleting the binaries, intermediate and saved folders. To no avail

I get the error:
LogPlayLevel: Error: ERROR: Stage Failed. Missing receipt ‘/blahblahblah/Binaries/Android/’. Check that this target has been built.
LogPlayLevel: (see /Users/chull/Library/Logs/Unreal Engine/LocalBuildLogs/Log.txt for full exception trace)
LogPlayLevel: AutomationTool exiting with ExitCode=103 (Error_MissingExecutable)
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 1.776950
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 0.000039
LogPlayLevel: Error: RunUAT ERROR: AutomationTool was unable to run successfully.
PackagingResults: Error: Launch failed! Missing UE4Game binary.
You may have to build the UE4 project with your IDE. Alternatively, build using UnrealBuildTool with the commandline:
UE4Game <Platform> <Configuration>

I try to build from command line:
cd “/Users/Shared/Epic Games/UE_4.23/Engine/Binaries/Mac”
open --args “/Users/me/Documents/Unreal Projects/Some Folder/MyProject.uproject” -run=cook -targetplatform=Android

This just switches from the Terminal to UREditor, but nothing happens. What gives?