I am new to python and I am trying to figure out how to call some windows commands inside a python script, below is the powershell script that works but I can't figure out how to convert this to python with the subprocess command any help would be appreciated.
horcmstart 100 101 $servers = @(“dc2pa90048”,”tocpaIIB-TI”,”lsys7011a-TI”,"powerlink-asys002-TI") Foreach ($server in $servers) { pairdisplay -IM100 -g $server -fcx start-sleep -s 1 "`n" }