Using the debug module, set DEBUG works in cmd, but not in powershell. Why?

using the debug module, set DEBUG is valid in cmd, but not in powershell. Why?
how do I use the set DEBUG command in powershell?

Jun.15,2022
Menu