cd /d "C:\Program Files\Autodesk\Maya2018\bin" mayapy pyside2-uic -o %~dp0<path>\ui\main_ui.py %~dp0ui\main.ui cd /d %~dp0