Hello,
$Context variable can be used only in PowerShell scripts executed by Business Rules, Custom Commands, and Scheduled Tasks. Currently, there is no possibility to use PowerShell debuggers.
To check values of variables, you can use the following code in your scripts:
$Context.LogMessage($myvar, "Information")
After script execution the value of $myvar variable will be displayed in the Execution Log.