Unable to create virtual machines by using bash and powershell

That looks like bash; the error message indicates that the script you’re trying to run using “source” is trying to run sudo, and the current Linux user is not allowed to run sudo.

So where are you trying to run this script? It would appear that you do not have the needed rights in this context to do that.