Get Output from Powershell as String

Never mind got the solution