I am using Visual Studio Code on Windows 10 machine:

Here is my code:
import sys
if __name__ == "__main__":
print(sys.argv[0])
print(sys.argv[1])
When I execute it, in the terminal window by passing a parameter:
c:; cd 'folder_path\code'; & 'folder_path\python3.9.exe' 'folder_path\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\lib\python\debugpy\launcher' '58259' '--' 'folder_path\code\cmd_line.py' test
I get an error
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it