IPA: /ɪnˈɛkspɪdiəntli/
KK: /ɪnˈɛkspɪdiəntli/
In a way that is not suitable or practical for a particular purpose or situation.
The decision was made inexpediently, leading to several complications later on.
Inexpediently → It is formed from "in-" (meaning not), "expedient" (from Latin "expedientem", meaning advantageous or suitable), and "-ly" (meaning in a manner). The word "inexpediently" means in a manner that is not advantageous or suitable.
Think of 'not' ('in-') doing something that is 'suitable' ('expedient') — that's why doing something inexpediently means doing it in a way that is not suitable.