Connect mikrotik with winbox

Hello mikrotik users,

Hope ur doing well.
I am new here and i want to ask if someone can help me connect winbox with mikrotik installed on hyper v.
I try to configure but without succed
when i try to give a interface: command showed me a script error that action cancelled
What steps i must take to connect succesfully.

thank you