Unable to Maximize browser window

I want to maximize my browser window and I have used the below command:

but its working in chrome and firefox. I am using latest version of chrome and firefox. Can anyone please help me?

I’m not sure where that command came from, the command I’ve seen used has always been WebUI.maximizeWindow()

Sorry didn’t work in katalon recorder.