Async methods in widget extensions


I created a widget extension with numerous methods, some of these methods are async and they seem to be giving me issues on the frontend side.

Whenever I call an async method (Ex: $customWidgetExtension.AsyncMethod()) the widget where I place this extension displays "System.Threading.Tasks.Task`1" instead of the

real value. How can I make my async method return the real value in telligent ? because this method I do have to await.