Function Import-ibd
{
[cmdletbinding()]
param
(
[string]$SiteID = $env:SITENUMBER, #pull envvar sitenumber and puts it as "siteid"
[string]$Username = 'username',
[string]$Password = 'password',
[string]$ImportID = 'ID of import'
)
$Result = Start-Process -FilePath 'c:\path to the \.exe ' `
-ArgumentList "/User $Username /Password $Password /SiteID $env:SITENUMBER /ImportID $ImportID /ContextSiteID $SiteID" -Wait -PassThru -NoNewWindow
}
Import-ibd
the CMD format for the command is " c:\path to.exe /User Jadoe123 /Password 1234Abc! /SiteID BJ123/ImportID EOD123 ". the command calls the .exe with a username + passwords, passes a siteid and which function inside of the .exe to run. I can run that command listed above in CMD and it works, but I'm looking to convert to python