Easy Way to call CMD in Automox

Example for calling cmd to install CS in Automox

$proc = Start-Process Installer.exe -ArgumentList '/install /quiet /norestart CID=KEY000000111' -PassThru
Write-Output "Exit Code was $($proc.ExitCode)"
Exit $proc.ExitCode