I found that by wrapping the packages I want to install in "quotes" the issue is resolved. For example, instead of:
sdkmanager --install build-tools;35.0.0
try:
sdkmanager --install "build-tools;35.0.0"