Invoke Power shell Get-Clipboard throws error


I am having a problem invoking the powershell command Get-Clipboard. I am getting the error:
Source: Invoke Power Shell (Throw)
Message: Object reference not set to an instance of an object.
Exception Type: System.NullReferenceException

Invoking the powershell works fine with another command, and if I break the syntax of the command (“Get-Clipboard -TextFormatType Html”) I receive the proper error. I have tried passing the variable as a variable and running the command as a script, both return the same error. I need to use powershell to get the full content of the clipboard as it contains a html hyperlink which I need and the Get From Clipboard activity only returns the display text of the hyperlink. In powershell the command works correctly and returns the correct data:
PS X:> Get-Clipboard -TextFormatType Html


Studio version 2018.3