I wonder how would you assign VBA codes written on Excel VBA to a sort of procedure/programme or maybe dos related filepath, which you can directly without opening excel. In
write a cmd or ps1 that opens an excel and in that excel's startup run your macro... and then when finished close it.
this can be a solution but you are probably doing something which is unnecessary in correct planned environments.