script that enables hyper-v management role and enables you to manage remote hyper-v server without being in same domain
Used guide and created script from it: https://timothygruber.com/hyper-v-2/remotely-managing-hyper-v-server-in-a-workgroup-or-non-domain/
to run powershell script one time without changing executionpolicy permanently:
Powershell.exe -ExecutionPolicy Bypass -File yourscript.ps1