adding pm command for opening a window