Console Application argument is empty

I'm trying to create a console application that receives arguments.
When I debug it in VSCode and insert the arguments in in the launch.json, it works perfectly.

But when using the windows console or powershell, calling the application.exe arg1 doesn't work. The argument is always empty.

Am I missing something?

Do you have a simple standalone example that demonstrates this issue?