In general you can put commands anywhere - script file, trigger, waypoint or init field. (There are a few exceptions.) This command is tricky and although it will technically work elsewhere, it's usually best to put it in a script.
Before you start messing with it, write a script that makes a chopper fly to a known point and land. Only when that is working smoothely should you expand it to cope with onMapSingleClick.