Quest checking /run not working

I used to be able to check my quest using the sequence /run print(IsQuestFlaggedCompleted(7)) Now its not working. can someone help… Its very useful and I dont have to run to support to see where I am in a quest line.

The command line changed slightly:

/script print(C_QuestLog.IsQuestFlaggedCompleted(number here))