Possible BUG with Github OAuth2 & API tokens - wanting to import workflows back

Thanks Jon & Marcus - we have made some progress. It turns out those tokens are randomly generated and expire quite quickly. That’s why some appeared to be different and not found. If you use the tokens pulled from the workflow in a timely manner, there are no issues.

We now have the .json files saved locally but for some reason the final CLI execute command node is playing up. We have tried both on the directory with n8n import:workflow --separate --input=C:\path\to\local\dir\ and with single files using n8n import:workflow --input=filename.json

No matter what we try, we allways recieve something like:

ERROR: Command failed: n8n import:workflow --input=C:\Users\User\AppData\Local\Programs\n8n\import\snippets-store.json node:internal/modules/cjs/loader:937 throw err; ^ Error: Cannot find module 'C:\Users\User\AppData\Local\Programs\n8n\import:workflow' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:934:15) at Module._load (node:internal/modules/cjs/loader:779:27) at Function.c._load (node:electron/js2c/asar_bundle:5:13331) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
 Details
Time
07/07/2022, 14:07:23
Cause
Data below may contain sensitive information. Proceed with caution when sharing.
{
}
Stack
NodeOperationError: Command failed: n8n import:workflow --input=C:\Users\User\AppData\Local\Programs\n8n\import\snippets-store.json
node:internal/modules/cjs/loader:937
  throw err;
  ^

Error: Cannot find module 'C:\Users\User\AppData\Local\Programs\n8n\import:workflow'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:934:15)
    at Module._load (node:internal/modules/cjs/loader:779:27)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

    at Object.execute (C:\Users\User\AppData\Local\Programs\n8n\resources\app\node_modules\n8n-nodes-base\dist\nodes\ExecuteCommand\ExecuteCommand.node.js:74:27)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Workflow.runNode (C:\Users\User\AppData\Local\Programs\n8n\resources\app\node_modules\n8n-workflow\dist\src\Workflow.js:594:28)
    at async C:\Users\User\AppData\Local\Programs\n8n\resources\app\node_modules\n8n-core\dist\src\WorkflowExecute.js:537:49

Would anyone know how to workout where the error lies?

Thanks very much.