Adapted cli call to run on non-windows OSs