Your modified code appears not to be defining the input parameter to the subprocess.run call.
Forum
Question Authors' Forum
Autogeneration of the expected answer?
This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 5 posting(s) in 1 day