Go to properties of the task.
Under the action tab, add/edit an action.
And you will see options to include arguments/parameters.

That being said, windows task scheduler has always been a hit-or-miss for me. I personally find that using custom schedulers by code is more reliable.
Here is my suggestion:
Step 1) Make a bat file with the following contents in your code's working directory:
"C:\Users\user2\AppData\Local\Programs\Python\Python39\python.exe" "C:\Users\user1\Desktop\working-directory\runner.py"
and let's name it something like "start-runner.bat". Also, note that the "runner.py" here is your custom scheduler code and not your actual code.
In the "runner.py", you can use the subprocess module combined with the threading module to asynchronously call your main file "python script.py --parameter --parameter".
And instead of using a simple pipe to redirect output, you can use subprocess module features and redirect the stdout to a file.
For scheduling, import time and use "time.sleep(300)"
Step 2) Make the bat file read-only
Step 3) Copy the bat file object to your windows clipboard
Step 4) Type "shell:startup" in your run command
Step 5) Right-click and "paste shortcut" into the startup folder
Step 6) Make the shortcut read-only