It is usually written right to left in the Arabic alphabet.
Very similar languages (sometimes considered dialects) are spoken in Tajikistan and Afghanistan.
See also Persian names.