How can I write a script that adds a program to python

  admin, python-3.x, shortcut, windows

I don’t want to add a python file to startup like other questions, I want to have code that can add any program to startup, first I thought to add a shortcut to C:ProgramDataMicrosoftWindowsStart MenuPrograms but that doesn’t work for some unknown reason and I asked the question on stack overflow earlier: error when trying to create windows shortcut
Then I tried to use a bat file to do it but that doesn’t work either.

Source: Windows Questions