Discovery:app_id not found

I tried to migrate my device (still active in V2) via the migration tool in ubuntu and windows as well (with set instead of export):
InkedMigration-Try1_20211103

Writing the 4 commands into 1 line as shown here also lead to the error “no_app_id”. What is going wrong?
Best regards, Thomas